title: Rails - get database fields to update without having to click a submit button - possible?
body: <p>I've got a dropdown list for users to select whether a task is completed or not. I want their changes to update the status on the database, without them having to click a submit button every time they make a change. Is this possible?</p>
  
  <p>Basically, all tasks are marked as not complete by default, so when the user clicks the dropdown and changes it to complete, I want this to change on the database without them having to click a submit button.</p>
  
  <p>Any help anyone could give would be great, thanks!</p>
  
  <p>This is the code I have:</p>
  
  <pre><code>&lt;%= form_for task do %&gt;
      &lt;td&gt;&lt;%= select :task, :complete, [ ["Yes",2], ["Partly",1], ["No",0]], { :action =&gt; "update" } %&gt;&lt;/td&gt;
  &lt;% end %&gt;
  </code></pre>