Is there a way to do fields_for
a has_many
association without looping through all the associated items?
I have a very similar situation to that discussed here:
I have a Person
model, with several related models (Address
, Phone number
, Jobtitle
...), and on the form I'd only like to create new records.
The new record should be pre-filled from the existing record. I have a helper function which catches the right data, I just want fields_for
to display that without having to go through the do loop.