This project is archived and is in readonly mode.
fields_for with index on nested attributes collection
Reported by piglop | April 8th, 2011 @ 07:28 PM
I'm trying to use fields_for on nested attributes collection association, with an explicit index like in this failing test: https://github.com/piglop/rails/commit/784e4f0fb168c0ce173aa0224631...
Is it a bug or am I doing something wrong ?
Comments and changes to this ticket
-
piglop April 9th, 2011 @ 10:10 AM
- Tag changed from nested attributes, fields_for, index to nested attributes, child_index, fields_for, index
I was doing something wrong. The right option is child_index, not index.
I think this should be documented, or at least mentioned as an allowed option.
Propositions:
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>