This project is archived and is in readonly mode.
Namespace root route not really namespaced
Reported by Ryan Bigg | April 8th, 2010 @ 11:14 PM | in 3.0.2
This is similar in concept to this ticket: https://rails.lighthouseapp.com/projects/8994/tickets/3673-namespac...
I have this in config/routes.rb:
namespace :admin do
root :to => "index#index"
end
But then rake routes
shows:
admin_root /admin {:controller=>"index", :action=>"index"}
And so it tries to map to IndexController
rather
than Admin::IndexController
.
Comments and changes to this ticket
-
Santiago Pastorino April 10th, 2010 @ 02:57 AM
- State changed from new to open
- Tag changed from rails3 to actiondispatch, patch, rails3, routing
- Assigned user set to josh
- Milestone cleared.
I've mailed Josh we are waiting what this kind of things
namespace :account do
match 'shorthand' endshould do, DHH says that doesn't make sense so i deleted this from tests
So i'm attaching a possible version of the patch.
-
Santiago Pastorino April 10th, 2010 @ 06:54 AM
- State changed from open to wontfix
the thing is :to overrides the namespace
-
Ryan Bigg April 10th, 2010 @ 06:55 AM
Thank you for the consideration and changes you have made today.
-
Santiago Pastorino April 11th, 2010 @ 06:32 AM
- State changed from wontfix to open
-
Santiago Pastorino April 11th, 2010 @ 08:50 AM
- Assigned user changed from josh to José Valim
-
Repository April 11th, 2010 @ 11:07 AM
- State changed from open to committed
(from [5b89fd07b28bcd342f874ab08a03efd864db1340]) Make namespace work with options[:to] [#4351 state:committed]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/5b89fd07b28bcd342f874ab08a03ef...
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
Attachments
Tags
Referenced by
- 4351 Namespace root route not really namespaced (from [5b89fd07b28bcd342f874ab08a03efd864db1340]) Make na...