title: Rails form_for :remote=>true is not calling js method
body: <p>I have no idea why this is not working, I'm learning rails and I'm following a book it says to do it like this:</p>
  
  <pre><code>    &lt;%= form_for([@article,@article.comments.new ], :remote=&gt;true, :html =&gt; {:style=&gt;'display: none;' }) do |f|%&gt;
      &lt;div class="field"&gt;
        &lt;%=    f.label :name %&gt;
        &lt;%=    f.text_field :name %&gt;
      &lt;/div&gt;
      &lt;div class="field"&gt;
        &lt;%=    f.label :email %&gt;
        &lt;%=    f.text_field :email %&gt;
      &lt;/div&gt;
      &lt;div class="field"&gt;
        &lt;%=    f.label :body %&gt;
        &lt;%=    f.text_area :body %&gt;
      &lt;/div&gt;
      &lt;%= f.submit %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>However it does not work, and when I check the request in firebug the url doesnt end in .js, do you have any ideas why?</p>