title: Correct route for a singular nested resource
body: <p>I have 2 resources, one being a nested resource of another:</p>
  
  <p><code>parent_resource</code> and <code>child_resource</code>.</p>
  
  <p>This gives me the following routes:</p>
  
  <pre><code>somesite.com/parent_resources/14
  somesite.com/parent_resources/14/child_resources/1
  </code></pre>
  
  <p>However there is only ever going to be a single <code>child_resource</code> for each <code>parent_resource</code>, so to someone using the site this is very confusing. I would like the child_resource paths to look like this:</p>
  
  <pre><code>somesite.com/parent_resource/14/child_resource
  somesite.com/parent_resource/14/child_resource/edit
  etc
  </code></pre>
  
  <p>What is the correct way to do this?</p>
  
  <p>My routes.rb</p>
  
  <pre><code>resources :parent_resources do
  
     resource :child_resource do
     end
  
  end 
  </code></pre>
  
  <p>From the rails guide to routing:</p>
  
  <pre><code>A singular resourceful route generates these helpers:
  
  new_geocoder_path returns /geocoder/new
  edit_geocoder_path returns /geocoder/edit
  geocoder_path returns /geocoder
  </code></pre>
  
  <p>But what about show?</p>
  
  <p>My routes generated by rake routes:</p>
  
  <pre><code>parent_resource_child_resource      POST   /parent_resources/:parent_resource_id/child_resource(.:format)                 child_resources#create
  
  
  new_parent_resource_child_resource  GET    /parent_resources/:parent_resource_id/child_resource/new(.:format)             child_resources#new
  
  edit_parent_resource_child_resource GET    /parent_resources/:parent_resource_id/child_resource/edit(.:format)            child_resources#edit
  
                                      GET    /parent_resources/:parent_resource_id/child_resource(.:format)                 child_resources#show
  
                                      PUT    /parent_resources/:parent_resource_id/child_resource(.:format)                 child_resources#update
  
                                      DELETE /parent_resources/:parent_resource_id/child_resource(.:format)                 child_resources#destroy
  </code></pre>