fields_for with index on nested attributes collection #1013

Closed
lighthouse-import opened this Issue May 16, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@lighthouse-import

Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/6690
Created by piglop - 2011-04-08 18:28:35 UTC

I'm trying to use fields_for on nested attributes collection association, with an explicit index like in this failing test: sigmike/rails@784e4f0

Is it a bug or am I doing something wrong ?

@lighthouse-import

This comment has been minimized.

Show comment Hide comment
@lighthouse-import

lighthouse-import May 16, 2011

Imported from Lighthouse.
Comment by piglop - 2011-04-09 09:10:54 UTC

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:

Imported from Lighthouse.
Comment by piglop - 2011-04-09 09:10:54 UTC

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment