Form Array Elements Handling


What is the proper “Rails Way” to handle arrays of objects on a form
using checkboxes to select one or more? For example, I would like to
assign one or more persons to task. In my view, I loop through each
person, spitting out a checkbox. When the form is submitted back to the
controller, I would like to iterate through the checked persons.

I know rails has some ways of dealing with object arrays in forms, but I
am not sure how to correctly use them.

Any help or links to samples is greatly appreciated.