Sha256: 31fa871a34eb66f31742699f2c7aff03dcdf25a9092ebe70d69ef9f787251ef2

Contents?: true

Size: 442 Bytes

Versions: 12

Compression:

Stored size: 442 Bytes

Contents

AdvRoutingDemo.controllers do
  get :simple, :map => "/some/simple/action" do
    "<h1>simple action welcomes you</h1>"
  end
  get :hello, :map => "/some/hello/action/:id/param" do
    "<h1>hello params id is #{params[:id]}</h1>"
  end
  
  get :multiple, :map => '/some/:name/and/:id' do
    "<h1>id is #{params[:id]}, name is #{params[:name]}</h1>"
  end
  
  get :test do
    "<h1>This is a test action, id: #{params[:id]}</h1>"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
padrino-routing-0.5.0 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.4.6 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.4.5 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.2.9 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.2.6 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.2.5 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.2.2 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.2.1 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.2.0 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.1.5 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.1.4 test/fixtures/adv_routing_app/controllers/autogenerated.rb
padrino-routing-0.1.3 test/fixtures/adv_routing_app/controllers/autogenerated.rb