How to get devise to work with multiple models or roles? (Preferably with CanCan and rolify)
- 阅读更多 关于 How to get devise to work with multiple models or roles? (Preferably with CanCan and rolify)
问题 Using devise, what is the best way to have multiple models or roles? Here are the models or roles I need in my app: -Author: can upload content to the site -Customer: pays a monthly fee to access the content A user can be both an Author and a Customer. I think they can share the same login form because they will both log in with their email address. I have tried using CanCan and rolify, but couldn't figure out how to add different roles during registration. When a user registers as an Author,