title: Why are id's from nested route switched around?
body: <p>I have a nested resource under my admin namespace:
  The <code>admin/topic/comments_controller.rb</code> is a resource under <code>admin/topics_controller.rb</code>.</p>
  
  <pre><code>  namespace :admin do
      resources :topics do
        resources :comments, :controller =&gt; "topic/comments"
      end
    end
  </code></pre>
  
  <p>gives me this delete route:</p>
  
  <p><code>DELETE<br>
  /admin/topics/:topic_id/comments/:id(.:format)<br>
  admin/topic/comments#destroy</code></p>
  
  <p>And I am creating a link to destroy comments, like the following:</p>
  
  <p><code># comment = @topic.comment.first<br>
  &lt;%= link_to "Destroy", [:admin, comment], :method =&gt; :delete %&gt;</code></p>
  
  <p>produces the following route:</p>
  
  <p><code>/admin/topics/165/comments/11</code></p>
  
  <p>All seems correct, except that the two ids are swapped around. What am I doing wrong?</p>