This project is archived and is in readonly mode.
Names for nested resources changed (AWDwR3, section 21)
Reported by Sam Ruby | December 11th, 2009 @ 12:33 PM | in 3.0.2
Given the following "new DSL" style route definition:
resources :articles do
resources :comments
end
The following named route is generated:
article_edit_comment GET /articles/:article_id/comments/:id/edit(.:format) {:controller=>"comments", :action=>"edit"}
The correct name for this route is edit_article_comment
Comments and changes to this ticket
-
Repository December 11th, 2009 @ 07:27 PM
- State changed from open to resolved
(from [2297eaed5b195ea42b99d062ad45f87dde9d3c60]) "new" and "edit" name routes always need to be prepend to the named_route [#3561 state:resolved]
http://github.com/rails/rails/commit/2297eaed5b195ea42b99d062ad45f8... -
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Medium
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>
Tags
Referenced by
- 3561 Names for nested resources changed (AWDwR3, section 21) (from [2297eaed5b195ea42b99d062ad45f87dde9d3c60]) "new" a...