title: Rails checkbox create a submit action
body: <p>I have a rails form with checkboxes.  What I am trying to do is when the user clicks on a check box the app deletes that entry from the database.  What I cannot figure out is how to have the app react when the user checks on the check box (similar action to having a submit button clicked). What should I include in my html so when the user click on a check box the app does something?</p>
  
  <p>Here is my code </p>
  
  <pre><code>&lt;% @items.each do |item|%&gt;
      &lt;%if item.email == @user.email%&gt;
          &lt;%= form_for @item do |f| %&gt;
              &lt;%= f.check_box :to_do %&gt;
              &lt;%= f.label item.to_do %&gt;&lt;br /&gt;
          &lt;% end %&gt;
      &lt;%end%&gt;
  &lt;%end%&gt; 
  </code></pre>
  
  <p>I am iterating through items and if there is a match between the item.email and user email print out the item with a check box next to it.  I can include more code if needed. Is there an Ajax call I can make?</p>