title: Nested resources no route matches error
body: <p>I am trying to get a basic nested resource path to work but am currently getting the following error:</p>
  
  <pre><code>No route matches {:action=&gt;"show", :controller=&gt;"stores"}
  </code></pre>
  
  <p>In my view I have the following links:</p>
  
  <pre><code> &lt;% if current_user %&gt; Hello &lt;%= current_user.email %&gt; /
    &lt;%= link_to 'Store', user_store_path %&gt; 
      &lt;%= link_to 'New Store', new_user_store_path %&gt;
      &lt;%= link_to 'My Profile', home_path %&gt;
      &lt;%= link_to 'Edit Profile', update_path %&gt;
      &lt;%= link_to "Logout", logout_path %&gt; 
     &lt;% else %&gt;
     &lt;%= link_to "Login", login_path %&gt; / &lt;%= link_to "Sign up", signup_path %&gt;
    &lt;% end %&gt;
  </code></pre>
  
  <p>Now when I rake my routes the paths I am being given match exactly those above - user_store_path etc.. </p>
  
  <p>My routes file looks like this:</p>
  
  <pre><code>   resources :users do
       resources :stores
     end
  
     match "signup" =&gt; "users#new"
     match "home" =&gt; "users#show"
     match "update" =&gt; "users#edit"
  
     get "login" =&gt; "sessions#new"
     post "login" =&gt; "sessions#create"
     delete "logout" =&gt; "sessions#destroy"
     get "logout" =&gt; "sessions#destroy"
  
     resources :sessions
  
     root :to =&gt; 'sessions#new'
  </code></pre>
  
  <p>This really is confusing me a lot because everything I have read on the RoR website suggests that this should work. Does anyone have any ideas where I am going wrong? </p>