Skip to main content

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

Rails • Asked by Lawrence Patrick Chege

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


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


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.