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.

rake routes output is wrong for Rack applications

#5443

Doing a rake routes, I get something like:

 user_confirmation GET    /:locale/users/confirmation(.:format)     {:locale=>/en|fr/, :controller=>"devise/confirmations", :action=>"show", :to=>#<ActionDispatch::Routing::Mapper::Constraints:0x0000010145cc28 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000010145d678 @defaults={:controller=>"devise/confirmations", :action=>"show"}, @glob_param=nil, @controllers={}>, @constraints=[#<Proc:0x000001051d9060@/Users/benoitdaloze/.rvm/gems/ruby-1.9.2-head@global/gems/devise-1.1.1/lib/devise/rails/routes.rb:191 (lambda)>], @request=ActionDispatch::Request>}
         edit_user GET    /:locale/my/user/edit(.:format)           {:locale=>/en|fr/, :controller=>"members/users", :action=>"edit"}

              root        /:locale                                  {:locale=>/en|fr/, :controller=>"home", :action=>"index"}
                          /                                         {:to=>#<Proc:0x0000010086d778@/Users/benoitdaloze/.rvm/gems/ruby-1.9.2-head@global/gems/actionpack-3.0.0.rc2/lib/action_dispatch/routing/mapper.rb:287 (lambda)>}

It is obviously wrong if it show Proc and Contraints this way.
Sorry if this has already been reported, I did not see any ticket which looked like this.

Reported by Benoit Daloze · August 24th, 2010 @ 03:52 PM

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