title: How do I create a dashboard link in my Rails user controller?
body: <p>I’m using Rails 5.  When my user is logged in, I want to replace the ‘/users/4’ action with a generic ‘/dashboard’ home link.  I would also like the remove the user’s ability to typing in ‘/users/##’ into the browser, instead only allowing them to visit ‘/dashboard’.  How do I do this?  Currently, in my config/routes.rb I have</p>
  
  <pre><code>  get '/dashboard', to: 'users#show'
    resources :users
  </code></pre>
  
  <p>and in my users_controller.rb file I have</p>
  
  <pre><code>  def show
      @user = User.find(params[:id])
      @user_subscriptions = UserSubscription.find_active_subscriptions_by_user(@user)
    end
  </code></pre>
  
  <p>But currently when I visit “/dashboard” in my browser, I get the error</p>
  
  <p><em>Couldn't find User with 'id'=</em></p>
  
  <p>How can I set up my route to disable the show action but allow /dashboard to successfully navigate to the action above?</p>