New Discussion

Notifications

You’re not receiving notifications from this thread.

Devise, scoped models

0
Rails

My app accesses multiple databases and I want to scope the model folder. So I would have two users types, e.g. (DB1::User, and DB2::User). I added the routes as devise_for 'db1/user and devise_for 'db2/user'; and I added authenticate_db1_user on the controller. However, I keep getting a failure where Warden is trying to find the model User which of course does not exist.

Is this doable in Devise?

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.