This project is archived and is in readonly mode.
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
-
Repository August 24th, 2010 @ 05:22 PM
- State changed from new to resolved
(from [6b54a6a8fff0eb6c8cb992156c8afab5267616cb]) Hide internal apps from rake routes [#5443 state:resolved] http://github.com/rails/rails/commit/6b54a6a8fff0eb6c8cb992156c8afa...
-
Repository August 24th, 2010 @ 05:23 PM
(from [edba51cf33fab379d7fd4cc01bd5755fb45c933d]) Hide internal apps from rake routes [#5443 state:resolved] http://github.com/rails/rails/commit/edba51cf33fab379d7fd4cc01bd575...
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Tags
Referenced by
- 5443 rake routes output is wrong for Rack applications (from [6b54a6a8fff0eb6c8cb992156c8afab5267616cb]) Hide in...
- 5443 rake routes output is wrong for Rack applications (from [edba51cf33fab379d7fd4cc01bd5755fb45c933d]) Hide in...