ruby on rails - acl9 trying to set it up -
Anyone have experience with this plugin? I have installed it but I do not know how to implement it. How do I define different roles?
Their remaid is really good.
I set this up and these steps are:
- Create a model class called role
- Create a migration for roles table (
- View your Authlogic plugin (assuming that # 160)
- See the Authlogic plugin (assuming that you have something that already exists). To create a roles, a roles_users association table (for exact migration, then, check
you can now turn current_us By er.has_role your user can play the role! Admin:
Can you see that the user has a specific role, such as current_user.has_role ?: admin
in readme There are so many examples.
Comments
Post a Comment