Does cancancan work in my situation

12 views
Skip to first unread message

demir...@gmail.com

unread,
Sep 4, 2015, 11:14:11 AM9/4/15
to cancancan
Hello people.
Im going to explain my situation here and if somebody can tell me how to implement this cancancan in my application.

I have a User model where i save user information, and i have Role model where i save the roles. The Association is: (one user can have just one role, one role has many users). In my controller i have some actions like: create, update, edit, new etc, now the admin can do everything and simple user can just read. I have no idea how to implement this cancancan thing, iv read the documentation but there no such similarity with my application.

Thanks in advance

Reply all
Reply to author
Forward
0 new messages