This project is archived and is in readonly mode.
Namespaced routes not working on Rails 3
-
Joao Carlos
- Tag changed from patch routes namespace to namespace, patch, routes
-
José Valim
- Assigned user set to José Valim
-
Repository
(from [36969c6ecd69fc285bf0267805152319a4b71ceb]) Fixes namespaced routes [#3673 status:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/36969c6ecd69fc285bf02678051523... -
Daniele Orlandi
I think the patch should consider the case when we want to explicitly indicate a controller outside the namespace, for example:
namespace :core
resource :log endnamespace :service1 do
resource :users doresource :log, :controller => '/core/log'end end
With the patch the 'log' nested route becomes:
:controller=>"service1//log"}
May I ask you to reopen this bug and change the patch to check if the controller's path is absolute before prepending the namespace?
Thanks.
-
José Valim
- Milestone cleared.
- State changed from committed to open
So far, we did not support absolute controller paths. Could you please bring this feature request to Rails mailing list?
-
José Valim
- State changed from open to hold
Daniele, any news? Have you brought this topic to discussion in the mailing list?
