title: Devise Redirects to specific page based on User Role on Login
body: <p>I have three possible permissions for a User to be in my Rails app, they are <code>User.is_admin</code>, <code>User.is_school</code>, and <code>User.is_security</code>. Based on the nature of my app I need to have a separate home screen for each of these users that do radically different things, which I have working. The problem that I'm having has to do with how Devise auto redirects to root_path after login for all users, regardless of the permissions I have set.</p>
  
  <p>I generated the Devise Sessions controllers into the Users namespace and I have overwritten it to default to my controller, but now when I try to do a redirect, based on the conditional permissions, I get a <code>DoubleRenderError</code> (The obvious reason being that Devise is redirecting elsewhere when creating the session).</p>
  
  <p>I have tried running it as an after_action and even tried overwriting the  <code>after_sign_in_path_for</code> method, as per the direction of the Devise docs on the matter, but I still can't get it working. Any help would be appreciated, thank you!</p>