I let admins do a lot of administration of the web site with the wonderful active admin gem.
I have a table called Audit Trail, I want to show the admins this table but obviously it shouldn't be tampered with.
Does active admin support a concept of "read only" tables?
在您的admin/yourmodel.rb
文件中添加此行将仅允许index
和show
操作,类似于“只读”:
actions :index, :show
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.