Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

fields_for with index on nested attributes collection

#6690

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 ?

Reported by piglop · April 8th, 2011 @ 07:28 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. piglop
    piglop
    • 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:

    April 9th, 2011 @ 10:10 AM