title: How to redirect to users/:id after successful devise sign in - rails 3
body: <p>Devise 2 is really awesome! However, I have been trying superhard to get it to redirect to users/:id after sign in. </p>
  
  <p>The default page is root after user successfully sign into the site. However, I want it to go to the users/:id page that is controlled by users_controller.rb. After sign in, I can manually enter localhost:3000/users/1 to go to the user profile page where I can access the user information, so the show controller is working fine. </p>
  
  <p>The key question is how to I get the site to go to localhost:3000/users/1 after user 1 signs in. </p>
  
  <p>I read the devise wikis many times and googled a lot. The simplest way is to override devise by adding in application_controller.rb: </p>
  
  <pre><code>def after_sign_in_path_for(resource)
    dashboard_path
  end
  </code></pre>
  
  <p>I guess my question is how to define the dashboard_path? What do I add in config/routes.rb and in application_controller.rb?</p>
  
  <p>Any help is greatly appreciated! I am using devise 2.0 and rails 3.2.3</p>