I’m using the fields_for helper with accepts_nested_attributes_for
The System model has_many children.
If I do this in my haml template:
-form_for @system do |s|
-s.fields_for :children do |child_fields| =child_fields.text_field :name
all is fine. The fields_for iterates over all children and puts the
correct data in the fields.
But…what I want to do is access the child object in that loop.
With normal fields_for I could do:
within the loop, but that no longer works since child_fields.object is
How do I access the child object?
Do I just have to revert to creating a separate iteration over the