title: 406 error during basic HTML update in rails (not jQuery, AJAX, or JSON)
body: <p>Has anyone run into 406 errors when doing very basic form updates in rails? The object is updated but the redirect is failing. I've tried specifying the format as HTML as well as removing <code>respond_to do |format|</code> According to the logs it is updating as HTML <code>ItemsController#update as HTML</code></p>
  
  <p>I'm sure I'm just overlooking something silly, but have been beating my head against the wall trying to solve this. I'm not trying to update via ajax or access JSON. I've tried using the standard <code>respond_to do |format|</code> and specifying HTML as well as removing <code>respond_to do |format|</code> completely. The rest of the objects in the application can be edited and do not have this problem.  </p>
  
  <p>In routes</p>
  
  <pre><code> resources :items
  </code></pre>
  
  <p>In the controller</p>
  
  <pre><code>def update
      @item = Item.find(params[:id])
      if @item.update_attributes(params[:item])
           redirect_to @item
      end
  end
  </code></pre>
  
  <p>In the view</p>
  
  <pre><code>&lt;%= form_for(@item) do |f| %&gt;
  
       &lt;%=f.text_field(:name)%&gt;
  
       &lt;div class="actions"&gt;
            &lt;%= f.submit %&gt;
       &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>