title: Rails 3 returning a HTTP 406 Not Acceptable?
body: <p>I have the following controller code:</p>
  
  <pre><code>  def create
      @admin = Admin.new(params[:admin])
      respond_to do |format|
        if @admin.save
          redirect_to(@admin, :notice =&gt; 'Admin was successfully created.')
        else
          render :action =&gt; "new"
        end
      end
    end
  
    def update
      @admin = Admin.find(params[:id])
      respond_to do |format|
        if @admin.update_attributes(params[:admin])
          redirect_to(admin_admins_path, :notice =&gt; 'Admin was successfully updated.')
        else
          render :action =&gt; "edit"
        end
      end
    end
  </code></pre>
  
  <p>and the following routes:</p>
  
  <pre><code>           admin_admins GET    /admin/admins(.:format)            {:action=&gt;"index", :controller=&gt;"admin/admins"}
             admin_admins POST   /admin/admins(.:format)            {:action=&gt;"create", :controller=&gt;"admin/admins"}
          new_admin_admin GET    /admin/admins/new(.:format)        {:action=&gt;"new", :controller=&gt;"admin/admins"}
         edit_admin_admin GET    /admin/admins/:id/edit(.:format)   {:action=&gt;"edit", :controller=&gt;"admin/admins"}
              admin_admin GET    /admin/admins/:id(.:format)        {:action=&gt;"show", :controller=&gt;"admin/admins"}
              admin_admin PUT    /admin/admins/:id(.:format)        {:action=&gt;"update", :controller=&gt;"admin/admins"}
              admin_admin DELETE /admin/admins/:id(.:format)        {:action=&gt;"destroy", :controller=&gt;"admin/admins"}
  </code></pre>
  
  <p>Now, aside from the slightly whacky naming - the redirects always result in a 406 Not acceptable.  What could be wrong?</p>