Ask A Question

Notifications

You’re not receiving notifications from this thread.

How to Setup Multiple User Models using one login with Devise.

Lawrence Patrick Chege asked in Rails

Hi Chris

I joined GoRails just recently and am excited to learn more about Rails.

I have an app that has 3 different users ( vendor, couple and admin) and each user has their own Dashboard and authentication system. I want to ask if its possible to link these 3 users to access their dashboard through one login page using devise gem.

Please advice me on how i can achive this.

Thank you very much

Reply

Have you taken a look at Devise Roles? It will make your life a lot easier this way.

https://github.com/plataformatec/devise/wiki/How-To:-Add-a-default-role-to-a-User

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.