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

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

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

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.