title: How do I edit multiple records in one Ruby on Rails form?
body: <p>I'm making a simple to-do list application to teach myself Ruby on Rails, however I've run into a problem. I have a simple form that lists to-do items with a check box to the left of them, and an "Update" button at the bottom, as so:</p>
  
  <p>[ ] Do the dishes<br>
  [ ] Take out the garbage<br>
  [ ] Take over the world<br>
  ( Update )</p>
  
  <p>Each to-do item is a separate record in the database with a "completed" boolean field. I want the form to submit a list of checked-off item ids to an action in which I can set each item's "completed" field to true, which will hide them from the view.</p>
  
  <p>I know how to make a form that references multiple models, but not one that references multiple records of the same model. Any tips?</p>
  
  <p>Thanks!</p>