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
If you want to send array of values just use [] in name attributes.In your case just use
<%= f.check_box "relationships", {}, :value => p.id, :name => "relationships[]" %>