I am new to Ruby on Rails. I am using Devise and CanCan. I would like to create groups of users so they will be in a group and be able to have a group leader. The group leader can add / edit / delete users only from that group.
I have followed http://edapx.com/2012/04/18/authorization-and-user-management-in-rails/ am not sure how to create groups now. Is it possible to do this in CanCan?
See if this answer can help you: https://stackoverflow.com/a/13747645/367611
Basically, you’ll have something like this:
Then in your User model, something like this: