title: NoMethodError with renamed nested resources (false route using link_to)
body: <p>I've ran into a problem which causes <code>link_to @resource</code> to fail.</p>
  
  <p>My view:</p>
  
  <pre><code>&lt;% @test_thing = Bar.first #This one belongs to Foo.first %&gt;
  &lt;%= link_to "test link", @test_thing %&gt;
  </code></pre>
  
  <p>produces this error:</p>
  
  <pre><code>NoMethodError
  undefined method `bar_path' for #&lt;#&lt;Class:0x007fd799bc1088&gt;:0x007fd799bc8400&gt;
  </code></pre>
  
  <p><strong>Why does rails not produce the correct route using <code>thing1_thing2_path</code>?</strong></p>
  
  <p>routes.rb:</p>
  
  <pre><code>resources :foo, as: "thing1", path: "thing2" do
    resources :bar, as: "thing2", path: "thing2"
  end
  </code></pre>
  
  <p>In my models, "Foo" <code>has_many :bars</code> and "Bar" <code>belongs_to :foo</code></p>
  
  <p>rake routes:</p>
  
  <pre><code>thing1_thing2_index GET    /thing2/:thing1_id/thing2(.:format)          bar#index
                      POST   /thing2/:thing1_id/thing2(.:format)          bar#create
    new_thing1_thing2 GET    /thing2/:thing1_id/thing2/new(.:format)      bar#new
   edit_thing1_thing2 GET    /thing2/:thing1_id/thing2/:id/edit(.:format) bar#edit
        thing1_thing2 GET    /thing2/:thing1_id/thing2/:id(.:format)      bar#show
                      PATCH  /thing2/:thing1_id/thing2/:id(.:format)      bar#update
                      PUT    /thing2/:thing1_id/thing2/:id(.:format)      bar#update
                      DELETE /thing2/:thing1_id/thing2/:id(.:format)      bar#destroy
         thing1_index GET    /thing2(.:format)                            foo#index
                      POST   /thing2(.:format)                            foo#create
           new_thing1 GET    /thing2/new(.:format)                        foo#new
          edit_thing1 GET    /thing2/:id/edit(.:format)                   foo#edit
               thing1 GET    /thing2/:id(.:format)                        foo#show
                      PATCH  /thing2/:id(.:format)                        foo#update
                      PUT    /thing2/:id(.:format)                        foo#update
                      DELETE /thing2/:id(.:format)                        foo#destroy
                 root GET    /                                            bar#index
  </code></pre>
  
  <p>I'm using rails 4, but I had the same problem with rails 3.<br>
  I fell like it's a bug in rails, or am I doing something wrong?</p>