title: Remote form in Rails not resetting
body: <p>Don't know why this is happening, but after submitting a form via JS (using JQuery), it's not resetting. </p>
  
  <p>_problem_form.erb</p>
  
  <pre><code>&lt;%= form_for [@industry, @problem], "id" =&gt; "problem_form", :remote =&gt; true  do |f| %&gt;
    //fields
  &lt;% end %&gt;
  </code></pre>
  
  <p>create.js.erb</p>
  
  <pre><code>&lt;% if @problem.errors.any? %&gt;
    $("#errors").html("&lt;%= escape_javascript(render :partial =&gt; 'layouts/error_messages', :locals =&gt; {:object =&gt; @problem })%&gt;");
  &lt;% else %&gt;
    $("#problem_form_area").html("&lt;%= escape_javascript(render :partial=&gt; 'problems/problem_form') %&gt;");
    $(".problem_area").html("&lt;%= escape_javascript(render @problems) %&gt;");
    $("#problem_form")[0].reset();
  &lt;% end %&gt;
  </code></pre>
  
  <p>The POST request is sent and I can see everything update normally. The form just doesn't reset. </p>
  
  <p>The really strange part is that normally after a a successful POST, all the assets are fetched. However, this time, the server just hangs at</p>
  
  <blockquote>
    <p>Completed 200 OK in 132ms (Views: 88.0ms | ActiveRecord: 2.5ms)</p>
  </blockquote>
  
  <p>and the logs don't indicate any GETs to my CSS or JS files.</p>
  
  <p>On a side note, if I click on the submit button again (after the first POST and without refreshing the page), I get this message:</p>
  
  <blockquote>
    <p>Started PUT "/industries/1/problems/71" for 127.0.0.1 at 2012-03-06
    18:49:51 -0500</p>
    
    <p>AbstractController::ActionNotFound (The action 'update' could not be
    found for ProblemsController):</p>
    
    <p>Rendered
    /Users/hansy/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb
    within rescues/layout (0.6ms</p>
  </blockquote>
  
  <p>So, not sure why my form is converting the method from POST to PUT. </p>
  
  <p>Any suggestions?</p>