title: Show User Profile Devise Rails
body: <p>I am trying to allow users profiles to be viewed. I am using devise and have followed <a href="https://stackoverflow.com/questions/7086583/creating-a-users-show-page-using-devise">Creating a <code>Users</code> show page using Devise</a></p>
  
  <p>Currently has a route of '/users/1' with 1 being the id of the user. I would like to make it '/users/username'. </p>
  
  <p>I tried to implement this by doing: </p>
  
  <p><strong>"config/routes.rb"</strong></p>
  
  <pre><code>match '/users/:username',   to: 'users#show',       via: 'get'
  </code></pre>
  
  <p><strong>"app/controllers/users_controller.rb"</strong></p>
  
  <pre><code>def show
    @user = User.find(params[:username])
  end
  </code></pre>
  
  <p>Even with this ^^ the route is still 'users/1'</p>