This project is archived and is in readonly mode.

#5443 ✓resolved
Benoit Daloze

rake routes output is wrong for Rack applications

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

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket


Referenced by