简体   繁体   中英

rails active admin: how to present a table as read only

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文件中添加此行将仅允许indexshow操作,类似于“只读”:

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.

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