title: AJAX rails check box using javascript .submit()
body: <p>I'm using Rails 3.1 and I need a checkbox to toggle and save to the database without the page refreshing or redirecting.</p>
  
  <p>Let me preface by saying i'm fairly novice, if i'm coming at this problem from the wrong angle please let me know.</p>
  
  <p>Here is my form:</p>
  
  <pre><code>&lt;% form_for book, :remote =&gt; true do |f| %&gt;
     &lt;%= f.check_box :finished %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Here is my jQuery javascript:</p>
  
  <pre><code>$('input#book_finished').live("click", function() {
      $(this).parent('form').submit();
  });
  </code></pre>
  
  <p>The :remote = > true doesn't work when I submit via jQuery, but does if I throw in a submit button (which I can't have).  How can I submit on clicking the checkbox though JS?</p>