How to route from a nested resource in rails? Getting 'ActiveRecord::RecordNotFound in UsersController#show'
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. So the url of the gameplay screen is /users/0/mines/1 The button from gameplay back to player stats looks like this: <%= link_to "Home", user_path, id: 'link-to-hq' %> User_path seems to be correct, but when I click it, I have the error: Couldn't find User with 'id'=1 def find_user @user = User.find(params[:id]) end (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)!!! The route im using is