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
You still need a fields_for in your view, just use :relationships as the record_name then provide an object.
<%= form_for @account do |f| %>
<%= f.text_field :name %>
<% fields_for :relationships, @eligible_parents do |p| %>
<%= p.check_box "relationships", nil, :value => p.object.id %>
<%= p.object.name %>
<% end %>
<%= f.submit "Submit" %>
<% end %>
Documentation here: ActionView::Helpers::FormHelper