Sha256: a4f710c09192ac729254135d05a8aaf1493f6dc8f60682784b906354e4837fbc

Contents?: true

Size: 559 Bytes

Versions: 12

Compression:

Stored size: 559 Bytes

Contents

AdvRoutingDemo.controllers :admin do
  get :dashboard do
    "<h1>This is the admin dashboard, id: #{params[:id]}</h1>"
  end

  get :panel, :map => "/admin/panel/:name/thing" do
    "<h1>This is the admin panel, name: #{params[:name]}</h1>"
  end
  
  get :simple, :map => '/admin/simple' do
    "<h1>This is the admin simple</h1>"
  end
  
  get :settings do
    "<h1>This is the settings</h1>"
  end
end


AdvRoutingDemo.controllers do
  namespace :blog do
    get :index, :map => "/blog/index/action" do
      "<h1>Here is the blog</h1>"
    end
  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/namespacing.rb
padrino-routing-0.4.6 test/fixtures/adv_routing_app/controllers/namespacing.rb
padrino-routing-0.4.5 test/fixtures/adv_routing_app/controllers/namespacing.rb
padrino-routing-0.2.9 test/fixtures/adv_routing_app/controllers/namespacing.rb
padrino-routing-0.2.6 test/fixtures/adv_routing_app/controllers/namespacing.rb
padrino-routing-0.2.5 test/fixtures/adv_routing_app/controllers/namespacing.rb
padrino-routing-0.2.2 test/fixtures/adv_routing_app/controllers/namespacing.rb
padrino-routing-0.2.1 test/fixtures/adv_routing_app/controllers/namespacing.rb
padrino-routing-0.2.0 test/fixtures/adv_routing_app/controllers/namespacing.rb
padrino-routing-0.1.5 test/fixtures/adv_routing_app/controllers/namespacing.rb
padrino-routing-0.1.4 test/fixtures/adv_routing_app/controllers/namespacing.rb
padrino-routing-0.1.3 test/fixtures/adv_routing_app/controllers/namespacing.rb