This project is archived and is in readonly mode.
Routing Rails 3.0b4 : namespace and match
Reported by pvet | July 2nd, 2010 @ 09:54 AM
I have a routing problem with namespace :
namespace :admin do
match ':controller(/:action(/:id(.:format)))'
end
is not working.
Even with an Admin::TestController (and an index action) in app/controllers/admin/test_controller.rb, I obtain No route matches "/admin/test"
Rails 3.0b4
ruby 1.8.7 (2009-06-12 patchlevel 174)
Comments and changes to this ticket
-
Repository July 2nd, 2010 @ 06:13 PM
- State changed from new to resolved
(from [9e6e64873243ee707ecad3d523ceb0dbae0617cd]) Fix routes with :controller segment when namespaced [#5034 state:resolved] http://github.com/rails/rails/commit/9e6e64873243ee707ecad3d523ceb0...
-
José Valim July 2nd, 2010 @ 06:19 PM
- Assigned user set to José Valim
- Importance changed from to Low
-
Nataniel July 6th, 2010 @ 12:59 AM
There's a related problem: url_for :controller => 'admin/test' does not work even if http://localhost:3000/admin/test works fine.
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
Referenced by
- 5034 Routing Rails 3.0b4 : namespace and match (from [9e6e64873243ee707ecad3d523ceb0dbae0617cd]) Fix rou...