title: Rails 3 Link_to :remote is not triggering RJS
body: <p>I'm working to setup an AJAX action in rails 3 with the following code.  The AJAX part of the code seems to work, but it does not request the correct file and my respond_to serves it the regular HTML.</p>
  
  <p>The routing information:</p>
  
  <pre><code>resources :zones do
    resources :records
  end
  </code></pre>
  
  <p>controller:</p>
  
  <pre><code>def new
    @zone = Zone.new
    respond_to do |format|
      format.html
      format.js
    end
  end
  </code></pre>
  
  <p>Link in view (haml):</p>
  
  <pre><code>= link_to 'Add a zone &amp;#8594;', new_zone_path, :remote=&gt;true
  </code></pre>
  
  <p>Generated HTML from link_to (also notice the failed rendering of the html entity...but thats another issue):</p>
  
  <pre><code>&lt;a href="/zones/new" data-remote="true"&gt;Add a zone &amp;amp;#8594;&lt;/a&gt; 
  </code></pre>
  
  <p>For kicks, a directory listing of the view/zones.  I'm not sure I am doing this quite right,
  so I have both new.js.rjs and new.rjs.  They both have the same content, but are never picked up by the action.</p>
  
  <pre><code>|   `~zones/
  |     |-_form.html.haml
  |     |-_record.html.haml
  |     |-edit.html.haml
  |     |-index.html.haml
  |     |-new.html.haml
  |     |-new.js.rjs
  |     |-new.rjs
  |     `-show.html.haml
  </code></pre>
  
  <p>Lastly, the server log from when I click the link:</p>
  
  <pre><code>Started GET "/zones/new" for 127.0.0.1 at Wed Dec 29 00:04:03 -0700 2010
    Processing by ZonesController#new as */*
    User Load (0.4ms)  SELECT "users".* FROM "users" WHERE ("users"."id" = 1) LIMIT 1
  Rendered zones/_form.html.haml (22.1ms)
  Rendered zones/new.html.haml within layouts/application (34.9ms)
  Completed 200 OK in 80ms (Views: 42.0ms | ActiveRecord: 0.4ms)
  </code></pre>
  
  <p>As you can see, it is rendering the .html file for the request.  Now, for testing, I hit the page <a href="http://localhost:3000/zones/new.js" rel="nofollow">http://localhost:3000/zones/new.js</a> directly. And it serves up new.js.rjs.  Also, the javascript remote call is working.  Firebug shows the request and response, but its requesting the wrong page.</p>
  
  <p>Also for testing I did this:</p>
  
  <pre><code>= link_to "Add a zone", '/zones/new.js', :remote=&gt;true
  </code></pre>
  
  <p>Which works fine (rjs is downloaded and executed and works correctly) for the javascript but it doesn't have the nice failover for javascript-disabled systems.</p>
  
  <p>For what it is worth I am using jquery.  </p>
  
  <p>I feel like I am missing something in the routing or the link syntax but all the examples I can find online and in the documentation seem to show exactly what I am doing.  Whats the catch?  </p>
  
  <p>Thanks.</p>