title: How can I redirect a user's home (root) path based on their role using Devise?
body: <p>I'm working on a project management app, and in the app, I have <strong>project_managers</strong> and <strong>clients</strong>. I'm using Devise and CanCan for authentication/authorization. </p>
  
  <p>At what point after login should I be redirecting the user to their own specific controller/layout/views? Is there a way to check for <code>current_user.role</code> in <code>routes.rb</code> and set the root (or redirect) based on whether or not they're a project manager or a client? Is this a change I can make in Devise somewhere?</p>
  
  <p>Thanks in advance for any help!
  --Mark</p>