title: How to route from a nested resource in rails? Getting 'ActiveRecord::RecordNotFound in UsersController#show'
body: <p>I have a gameplay screen, with a link to return to a players' stat page. My test user id is 0, and the mine id is 1. </p>
  
  <p>So the url of the gameplay screen is <code>/users/0/mines/1</code></p>
  
  <p>The button from gameplay back to player stats looks like this:</p>
  
  <pre><code>&lt;%= link_to "Home", user_path, id: 'link-to-hq' %&gt;
  </code></pre>
  
  <p>User_path seems to be correct, but when I click it, I have the error:</p>
  
  <pre><code>Couldn't find User with 'id'=1
  
   def find_user
    @user = User.find(params[:id])
   end
  </code></pre>
  
  <p>(This is my private find user method from my user's controller.)
  For some reason, it's grabbing the MINES id (of 1), not the user id (of 0)!!!</p>
  
  <p>The route im using is this:</p>
  
  <pre><code>user GET    /users/:id(.:format)     users#show
  </code></pre>
  
  <p>my controller looks like this:</p>
  
  <pre><code># This is 'Headquarters', HQ...
    def show
      @user = User.find(params[:id])
      @mine = @user.mines.first
      @tool = Tool.find(@user.tool_id)
   end
  
  
   private
  
    def find_user
      @user = User.find(params[:id])
    end
  </code></pre>
  
  <p><code>(i have a before_action :find_user :show)</code></p>
  
  <p>Do I need to make a custom route to grab that user Id when going back to user stats from gameplay?
  How can I grab the correct id?</p>