Ask A Question

Notifications

You’re not receiving notifications from this thread.

Devise, scoped models

gmhawash asked in 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?

Reply
Join the discussion
Create an account Log in

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

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

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