Forms containing checkboxes and collections/object lists

Check out this railscast.