Ask A Question

Notifications

You’re not receiving notifications from this thread.

Devise multiples scopes

ibro asked in Rails

Hi !, i'am using devise in rails, and i want to use devise for multiples scopes such as User, Member, Partner, etc..., But i would like to separete them both into diferents models, and there controllers. But i want to generate a single devise views (sessions, registrations, etc..) for both scopes, and they gonna have both the same page for log-in.

IF possible, how can i handle this fonctionality? only one sigle LOGIN PAGE for both scopes
thanks in advance.

Reply

You handle authentication in a custom controller and redirect users based on their type. Adjust the views as needed for your specific design and functionality.

Reply
Join the discussion
Create an account Log in

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

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

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