I followed rolify's tutorial learnt some basic usages. https://github.com/RolifyCommunity/rolify/wiki/Devise---CanCanCan---rolify-Tutorial
For now I the only way I can do to create role is something like user.add_role "admin"
in console.
What I want is to create roles by adding resources' actions, then admin user is able to assign roles to users.
I do not know how to achieve this, I made a draft to show my purpose.
Anybody could give me some ideas to make this?