Anyone have experience with this plugin? I have it installed but I have no idea how to implement it. How do I define the different roles?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Their readme is in fact really good.
I just set it up and these are the steps:
You can now assign roles to your user by current_user.has_role! :admin
You can check if a user has a certain role by calling e.g. current_user.has_role? :admin
There are lots of examples in the readme.