Original question
Two resources: users and animals. When creating a user, the client selects check boxes to say how many
users
animals.
collection_check_boxes is a better option:
<%= f.collection_check_boxes(:animal_ids, Animal.all, :id, :name) do |animal| %> <%= animal.label { animal.check_box } %> <% end %>