How can I redirect a user's home (root) path based on their role using Devise?

后端 未结 5 2065
天涯浪人
天涯浪人 2020-12-02 11:18

I\'m working on a project management app, and in the app, I have project_managers and clients. I\'m using Devise and CanCan for authenticat

5条回答
  •  春和景丽
    2020-12-02 11:54

    Blog post with the implementation http://minhajuddin.com/2011/10/24/how-to-change-the-rails-root-url-based-on-the-user-or-role/

提交回复
热议问题