title: nested routes with double id
body: <p>I am starting with rails and I am having a issue on nested routes with 2 ids.</p>
  
  <p>I submit a form from:</p>
  
  <pre><code>http://localhost:3000/admin/worlds/1/banks/new
  </code></pre>
  
  <p>And I get redirect to:</p>
  
  <pre><code>http://localhost:3000/admin/worlds/23/banks/23 
  </code></pre>
  
  <p>(with 23 being the id of the new bank)</p>
  
  <p>The problem is that I can't force this url to keep the first <code>id = 1</code> as on the first route after the create action.</p>
  
  <p>My <code>Admin::Bank</code> controller on the create here:</p>
  
  <pre><code>def create
    @world_bank = Admin::Bank.new(params[:admin_banque])
    @world_bank.world_id = params[:id]
    @world_bank.save!
    redirect_to admin_bank_path(@world_bank.world_id, @world_bank.id)
  end
  </code></pre>
  
  <p>Routes:</p>
  
  <pre><code>namespace :admin do
     resources :mondes do
        member do
          resources :banques
      end
    end
  end
  </code></pre>
  
  <p>And rake routes:</p>
  
  <pre><code>admin_banks GET    /admin/worlds/:id/banks(.:format)          admin/banks#index
  POST   /admin/worlds/:id/banks(.:format)          admin/banks#create
  new_admin_bank GET    /admin/worlds/:id/banks/new(.:format)      admin/banks#new
  edit_admin_bank GET    /admin/worlds/:id/banks/:id/edit(.:format) admin/banks#edit
  admin_bank GET    /admin/worlds/:id/banks/:id(.:format)      admin/banks#show
  PUT    /admin/worlds/:id/banks/:id(.:format)      admin/banks#update
  DELETE /admin/worlds/:id/banks/:id(.:format)      admin/banks#destroy
  </code></pre>
  
  <p>The fact is that I see:</p>
  
  <p><code>:id/thing/:id/stuff</code> when I know I should get <code>:world_it/thing/:id/stuff</code></p>
  
  <p>I've tried different way to use the redirect, especially the <code>redirect_to admin_banks(world_id, id)</code> for example, but it stayed the same.</p>
  
  <p>I am pretty sure this could be fixed with a match in the routes.rb but I can't make it work for now...</p>