New Discussion

Notifications

You’re not receiving notifications from this thread.

Devise multiples scopes

1
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.

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.

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.