title: rails admin edit view path routes
body: <p>I've got an admin section setup, but am having trouble getting the "update" route to work.</p>
  
  <p><strong>Getting error when hitting "update" via the edit view:</strong><br>
  "No action responded to 2."</p>
  
  <p>For some reason the route is responding to the :id as the :action.</p>
  
  <p><strong>Parameters:</strong><br>
    Parameters: {"commit"=>"Update", <strong>"action"=>"2"</strong>, "_method"=>"put", "admin"=>{"ended_at(1i)"=>"2010", "ended_at(2i)"=>"8", "ended_at(3i)"=>"22"}, "id"=>"edit", "controller"=>"admin/subscriptions"}</p>
  
  <p>The edit view uri:<br>
  /admin/subscriptions/2/edit</p>
  
  <p><strong>Edit view:</strong></p>
  
  <pre><code>&lt;% form_for :admin, @subscription, :html =&gt; {:method =&gt; :put} do |f| %&gt;
    &lt;p&gt;
      &lt;%= f.label :ended_at %&gt;&lt;br /&gt;
      &lt;%= f.date_select :ended_at %&gt;
    &lt;/p&gt;
    &lt;p&gt;
      &lt;%= f.submit 'Update' %&gt;
    &lt;/p&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p><strong>Route:</strong></p>
  
  <pre><code>  map.namespace :admin do |admin|
      admin.resources :subscriptions
    end
  </code></pre>
  
  <p>I assume I need to do something differently in the form_for method or maybe the routes, but everything I've tried isn't working.</p>
  
  <p>Thanks for the help!!</p>