Skip to content

Commit

Permalink
Merge pull request activeadmin#482 from webmat/master
Browse files Browse the repository at this point in the history
Add example to show screen documentation.

This example uses `attributes_table` and `active_admin_comments`.
  • Loading branch information
pcreux committed Sep 16, 2011
2 parents 93f5aee + cf77ced commit 7b054e9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/6-show-screens.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,17 @@ can also render a partial at any point.
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

0 comments on commit 7b054e9

Please sign in to comment.