I need to design a form for a account resource. In that form, i need to collect some set of ids as an array in the params hash in attribute called
account
params
In a complex form, with nested attributes, you can make use of the f.object_name helper. But beware of the syntax when doing interpolation. This is correct:
"#{f.object_name}[relationships][]"
This is NOT correct:
"#{f.object_name}[relationships[]]"
It always trips me up.