Closed moussasarr closed 9 years ago
Gotta call create
or save
, otherwise nothing will get saved in the database.
There isn't currently an example or tutorial, sorry. This is on my to-do list.
Also can you also please look at my controllers and model and let me know if I am using your gem correctly according to what I am trying to do if you are able to ? I do not mean to bother you too much with questions . I am just stuck and I really want to know how to use this gem
I am trying to add group functionality for my users. I have never used the Groupify gem before .
I would like to start with Groups such as : Admin, Moderator, Artist, User. The members of these groups are all users but have certain privileges . And I would also like to give members of these basic groups the ability to create new groups for mostly discussion purposes and information sharing. I am not even sure How to create the form for the group and how how to create the group, with its attributes, and membership.
I tried using Groupify on the console:
It returns false instead of true. I am stuck and though I read the documentation, I do not seem to understand the implementation:
Here is my just created group controller :
has_many :active_relationships, class_name: "Relationship", foreign_key: "follower_id", dependent: :destroy
And finally my group migration:
Thanks for your help. Also do you have an example application/tutorial where groupify is implemented >? PS: I am not an advanced Rails developer