title: Ajax comments not working in Rails 3.0.3
body: <p>In layouts/application.html.erb. I have:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
  &lt;head&gt;
    &lt;meta http-equiv="content-type" content="text/html;charset=UTF-8" /&gt;
    &lt;title&gt;Some title&lt;/title&gt;
    &lt;%= stylesheet_link_tag 'application' %&gt;
    &lt;%= stylesheet_link_tag 'blueprint/print', 'media' =&gt; 'print' %&gt;
    &lt;%= javascript_include_tag 'jquery', 'jquery-ui-1.8.2.custom', 'jquery.colorbox-min', 'jquery.corner', 'jquery.countdown.min', 'jquery.uploadFileThis',
      'jquery.ui.core', 'jquery.ui.mouse', 'jquery.ui.position', 'jquery.ui.slider', 'jquery.ui.widget', 'jquery.ui.datepicker',
      'ajaxupload', 'jwplayer', 'swfobject', 'flowplayer-3.2.4.min', 'rails', 
      'application', :cache =&gt; true %&gt;
    &lt;%= csrf_meta_tag %&gt;
  &lt;/head&gt;
  &lt;body&gt;
  .....
  </code></pre>
  
  <p>In my view, I have:</p>
  
  <pre><code>&lt;%= link_to 'delete', song_comment_path(comment.media, comment), :confirm =&gt; 'Are you sure?', :method =&gt; :delete, :remote =&gt; true %&gt;
  </code></pre>
  
  <p>My Comments controller, destroy method looks like:</p>
  
  <pre><code>  def destroy
      @comment = Comment.find(params[:id])
      @comment.destroy
  
      respond_to do |format|
        format.html { redirect_to(root_path) }
        format.xml  { head :ok }
        format.js   {  }
      end
    end
  </code></pre>
  
  <p>When I click this link, I get a pop-up box saying "Are you sure?". I click OK. I have a destroy.js.erb file in /views/comments. Inside this file, I have:</p>
  
  <pre><code>alert('Inside destroy.js.erb');
  // and some code to hide the comment element
  </code></pre>
  
  <p>The comment is deleted, but not via ajax. It seems, the link_to goes into comment controller, destroy method. But is responding to respond.html, instead of respond.js. Hence why I don't get the <strong>alert('Inside destroy.js.erb');</strong></p>
  
  <p>This all used to work fine when I was still using Rails 3.0.0, until I decided to upgrade: </p>
  
  <ul>
  <li>to Rails 3.0.3, </li>
  <li>from query 1.4.0 to 1.4.4 (http://jquery.com/),</li>
  <li>and update latest rails.js (https://github.com/rails/jquery-ujs)</li>
  </ul>
  
  <p>Why isn't format.js being called? Why is Rails still trying to call format.html?</p>