Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

No API for introspecting routes (AWDwR3, section 21.2)

#3405

Given:

rs = ActionController::Routing::Routes

2.3.4 results:

puts rs.routes

GET    /users(.:format)?                        {:controller=>"users", :action=>"index"}
POST   /users(.:format)?                        {:controller=>"users", :action=>"create"}
GET    /users/new(.:format)?                    {:controller=>"users", :action=>"new"}
...

3.0pre results:

puts rs.routes

 #<Rack::Mount::Route:0x987c630>
 #<Rack::Mount::Route:0x9861f88>
 #<Rack::Mount::Route:0x9852ccc>

...

Reported by Sam Ruby · October 21st, 2009 @ 05:05 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Sam Ruby
    Sam Ruby
    • State changed from new to resolved

    Now there is a wealth of information:

    rails/info/properties {:action=>"properties", :controller=>"rails/info"}", @conditions={:path_info=>/\A\/rails\/info\/properties\Z/}, @path="/rails/info/properties", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x7f6f166d10a0 @glob_param=nil>, @requirements={:action=>"properties", :controller=>"rails/info"}, @defaults={:action=>"properties", :controller=>"rails/info"}>]

    February 3rd, 2010 @ 12:55 PM