docs/6-show-screens.md in activeadmin-0.3.1 vs docs/6-show-screens.md in activeadmin-0.3.2
- old
+ new
@@ -18,5 +18,19 @@
show do
# renders app/views/admin/posts/_some_partial.html.erb
render "some_partial"
end
end
+
+If you'd like to keep the default active_admin look, you can also use "attributes_table":
+
+ ActiveAdmin.register Ad do
+ show do |ad|
+ attributes_table do
+ row :title
+ row :image do
+ image_tag(ad.image.url)
+ end
+ end
+ active_admin_comments
+ end
+ end