title: Rails 406 "Not Acceptable" errors with remote forms?
body: <p>I'm trying to add a remote form to my Rails 3 app with <a href="https://github.com/rails/jquery-ujs" rel="nofollow">jQuery UJS</a>, and although the form appears to be sending its request correctly, the server returns a 406 "Not Acceptable" error:</p>
  
  <pre><code>Started POST "/account.1" for 127.0.0.1 at 2011-06-30 07:14:27 +0200
  Processing by AccountsController#update as 
  ...
  Completed 406 Not Acceptable in 295ms
  </code></pre>
  
  <p>jQuery-UJS appears to be sending the correct HTTP_ACCEPT header:</p>
  
  <pre><code>text/javascript, application/javascript, application/ecmascript, 
  application/x-ecmascript, */*; q=0.01
  </code></pre>
  
  <p>and I've stripped the <code>accounts#update</code> action to a bare minimum to try to debug this, but nothing's worked:</p>
  
  <pre><code>class AccountsController &lt; ApplicationController
  
    respond_to :html, :js
  
    def update
      @account = Account.find(params[:id])
  
      respond_with(@account) do |format|
        format.html
        format.js
      end
    end
  
  end
  </code></pre>
  
  <p>For what it's worth, I'm using HTML5 Boilerplate to load the jQuery library via Google API, and I'm using Modernizr to let include Javascript at the bottom of the page instead of in the <code>&lt;head&gt;</code> element.</p>
  
  <p>Has anyone encountered anything like this?  What am I doing wrong?</p>