简体   繁体   English

Ruby on Rails活动管理员作为每个用户的仪表板

[英]Ruby on Rails active admin as dashboard for every user

I am relatively new to Ruby on Rails and activeadmin. 我是Ruby on Rails和activeadmin的新手。 I wonder how I can make active_admin as a user control dashboard. 我不知道如何使active_admin成为用户控制仪表板。 User loged into admin dashboard, only seeing their own records, ie posts and account info and etc. Also, I already have CanCAn role based user authorization 用户登录到管理控制台,仅看到自己的记录,即帖子和帐户信息等。而且,我已经具有基于CanCAn角色的用户授权

https://github.com/gregbell/active_admin/wiki/How-to-work-with-cancan https://github.com/gregbell/active_admin/wiki/How-to-work-with-cancan

Based on the article pasted above, it is possible to create user only access their own records. 根据上面粘贴的文章,可以创建仅访问他们自己的记录的用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM