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

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

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

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