title: jquery $.ajax not working in firefox against rails (406 response) (works in chrome & IE)
body: <p>I have a rails backend and am testing the following jquery code against it:</p>
  
  <pre><code>  var content = $("#notification_content").val();
    var data = new Object();
    data.content = content;
    $.ajax({ url: "/notifications/detect_type.json", type:"POST", data: data, success: function(result  ){updateTypeDropDown(result)}});
  </code></pre>
  
  <p>This code works fine in Chrome and IE.  However in Firefox (using Firebug), I see this:
  <a href="http://localhost:3000/notifications/detect_type.json" rel="nofollow">http://localhost:3000/notifications/detect_type.json</a>  406 Not Acceptable</p>
  
  <p><strong>here is a firefox request in the log:</strong></p>
  
  <blockquote>
    <p>Processing
    NotificationsController#detect_type
    (for 127.0.0.1 at 2010-12-21 17:05:59)
    [POST]   Parameters:
    {"action"=>"detect_type",
    "content"=>"226 south emerson denver
    co 80209",
    "controller"=>"notifications"}   User
    Columns (2.0ms)   SHOW FIELDS FROM
    <code>users</code>   User Load (37.4ms)   SELECT
    * FROM <code>users</code> WHERE (<code>users</code>.<code>id</code> = '1') LIMIT 1 Completed in 58ms (View:
    1, DB: 40) |
    406 Not Acceptable [http://localhost/notifications/detect_type.json]</p>
  </blockquote>
  
  <hr>
  
  <p><strong>here is a chrome request in the log:</strong></p>
  
  <blockquote>
    <p>Processing
    NotificationsController#detect_type
    (for 127.0.0.1 at 2010-12-21 17:06:41)
        [POST]   Parameters: {"action"=>"detect_type",
    "content"=>"226 south emerson 80209",
    "controller"=>"notifications"}<br>
        User Columns (2.1ms)   SHOW FIELDS FROM <code>users</code><br>
        User Load (30.4ms)<br>
        SELECT * FROM <code>users</code> WHERE (<code>users</code>.<code>id</code> = '1') LIMIT 1 Completed
    in 100ms (View: 1, DB: 33) |<br>
    200 OK [http://localhost/notifications/detect_type.json]</p>
  </blockquote>
  
  <p>I'm stumped.  Ideas?</p>