I have the following data model:
- Person (name, …)
- Address (street, city)
- Person has_ony Address
I would like to edit the Person and its Address in one single form.
Using form_for, I can add the person fields. Using fields_for, I could
have the Address also, but it’s not nested here (aka
person[address[street]]. So the question is how to “prefix” the
field_for to include the Address hash into the Person hash?