I'm using Active Admin in my Rails app and the default page for a resource has a comment field that seems very useful. I created a custom show page for my resource and now the comment section is gone. How can I add it back?
ActiveAdmin.register Project do
show do
attributes_table :name, :description
active_admin_comments # Add this line for comment block
end
end
Use active_admin_comments inside your show block at the end. source ActiveAdmin Source
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.