We are using the devise gem for authentication in a Rails 3 application. We have multiple roles and from the devise stand-point, the roles will differ in terms of confirmation, activation and remember me functionality.
The devise documentation has examples of two scopes being defined. One is the User itself and the other one is the admin role.
Can I have something like this? I would create a User model. And then I would create 3 roles:
- Role1
- Role2
- Admin
Does devise support this? Has anybody tried this out?