title: Pass values of checkboxes into an array?
body: <p>Im trying to update someone else's Rails app. Right now, an HTML table displays values from a database. What i want is to be able to display a checkbox for each row and on submit, the values of the checkboxes are sent into an array (and the values shouldnt be "checked" or "unchecked", they should be the id's of the database row).</p>
  
  <p>Heres what i have so far. </p>
  
  <p>Checkbox : (message.id being a dynamic id)</p>
  
  <pre><code> &lt;%= check_box_tag "message_ids[]", message.id %&gt;
  </code></pre>
  
  <p>And on the controller:</p>
  
  <pre><code> @dispatches = Dispatch.find_by_message_ids(CODE TO RETRIEVE CHECKBOX ARRAY GOES HERE)
  </code></pre>
  
  <p>Any suggestions? </p>