Sha256: 1b355e6692aae7c6a23a3fa344e4c560e0ef48e971707fce054173a6aff641b9

Contents?: true

Size: 1017 Bytes

Versions: 31

Compression:

Stored size: 1017 Bytes

Contents

# This test Padrino stack file was taken from the padrino-core gem.
#
PADRINO_ROOT = File.dirname(__FILE__) unless defined? PADRINO_ROOT
# Remove this comment if you want do some like this: ruby PADRINO_ENV=test app.rb
#
# require 'rubygems'
# require 'padrino-core'
#

class SimpleDemo < Padrino::Application
  set :public_folder, File.dirname(__FILE__)
  set :reload, true
  before { true }
  after  { true }
  error(404) { "404" }
end

SimpleDemo.controllers do
  get "/" do
    'The magick number is: 2767356926488785838763860464013972991031534522105386787489885890443740254365!' # Change only the number!!!
  end

  get "/rand" do
    rand(2 ** 256).to_s
  end

  get "/render" do
    render :erb, "This is an erb render"
  end
end

## If you want use this as a standalone app uncomment:
#
# Padrino.mount("SimpleDemo").to("/")
# Padrino.run! unless Padrino.loaded? # If you enable reloader prevent to re-run the app
#
# Then run it from your console: ruby -I"lib" test/fixtures/apps/simple.rb
#

Padrino.load!

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
oboe-2.7.9.lynx1 test/frameworks/apps/padrino_simple.rb
oboe-2.7.8.1-java test/frameworks/apps/padrino_simple.rb
oboe-2.7.8.1 test/frameworks/apps/padrino_simple.rb
oboe-2.7.7.1-java test/frameworks/apps/padrino_simple.rb
oboe-2.7.7.1 test/frameworks/apps/padrino_simple.rb
oboe-2.7.6.2-java test/frameworks/apps/padrino_simple.rb
oboe-2.7.6.2 test/frameworks/apps/padrino_simple.rb
oboe-2.7.5.1-java test/frameworks/apps/padrino_simple.rb
oboe-2.7.5.1 test/frameworks/apps/padrino_simple.rb
oboe-2.7.5.wolf3 test/frameworks/apps/padrino_simple.rb
oboe-2.7.5.wolf3-java test/frameworks/apps/padrino_simple.rb
oboe-2.7.5.wolf1 test/frameworks/apps/padrino_simple.rb
oboe-2.7.5.wolf1-java test/frameworks/apps/padrino_simple.rb
oboe-2.7.4.1-java test/frameworks/apps/padrino_simple.rb
oboe-2.7.4.1 test/frameworks/apps/padrino_simple.rb
oboe-2.7.3.1-java test/frameworks/apps/padrino_simple.rb
oboe-2.7.3.1 test/frameworks/apps/padrino_simple.rb
oboe-2.7.2.fuchs2 test/frameworks/apps/padrino_simple.rb
oboe-2.7.2.fuchs1 test/frameworks/apps/padrino_simple.rb
oboe-2.7.2.2-java test/frameworks/apps/padrino_simple.rb