Guys I have 4 tables in my DB as follows
I'm using RoR as web development environment.
Here,
I want to restrict a controller access based on a logged in user's role (role-base-authorization), How I do this? does it requires a new table?
You can use cancan gem. It's a cool gem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.