3
votes

I've discovered yesterday a tutorial that explains how to implement a role based single user model with Devise, ActiveAdmin and CanCan : http://renisoft.com/devise-activeadmin-cancan-single-user-model/. Yet, I'm new to rails, and I was wondering if it is possible to implement such a solution with roles that have different attributes. For instance, my users will have email, forename, surname, password and will share it with the other roles. But my seller role will have many attributes, my admin and my buyers will have others. Is it something possible to implement with those ruby gems ?

Thanks in advance for your answer.

1

1 Answers

0
votes

Users and roles are two different things. Roles haven't got any attributes, but Users have.

However check this:

Rolify is a great Role management library for rails: https://github.com/EppO/rolify