I have a model user.
A user has_many :roles
Roles: admin, super admin, user
This specific user has the admin role. But for a view I want to list all
Is it possible to do something like:
“user.roles_all”? and get all the associated roles AND the ones not
currently associated with the user?
So I can create some checkboxes with the ones checked that are
I hope I’ve explained it right.
Thanks in advance!