This project is archived and is in readonly mode.
Namespace nested in resources
Reported by Jan De Poorter | April 14th, 2010 @ 09:43 AM
When you nest a namespace in a resource, at the moment you get funky results. eg:
resources :clients do
namespace :google do
resource :account
end
end
What you'd expect as path:
/clients/:client_id/google/account
client_google_account_path(42)
What you actually get at the moment:
/clients/google/:client_id/account
google_client_account_path(42)
This patch nests the namespace if we're in a resource.
Comments and changes to this ticket
-
José Valim June 8th, 2010 @ 10:03 PM
Could you please check if this also works for resource - namespace - resource(s)?
-
Repository June 8th, 2010 @ 10:27 PM
- State changed from new to resolved
(from [5c9f27abaabba0d008ccd710ed1af5f6caa4e371]) Add more cases to previous commit [#4394 state:resolved] http://github.com/rails/rails/commit/5c9f27abaabba0d008ccd710ed1af5...
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
Referenced by
- 4394 Namespace nested in resources (from [5c9f27abaabba0d008ccd710ed1af5f6caa4e371]) Add mor...