Created
September 20, 2011 18:53
-
-
Save gregbell/1229963 to your computer and use it in GitHub Desktop.
Active Admin - Show screen with default content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveAdmin.register Product do | |
# Will show the default main content... | |
show do | |
# Do stuff before | |
default_main_content | |
# Do stuff after | |
end | |
# ... Or if you want to customize further | |
show do | |
attributes_table *default_attribute_table_rows | |
active_admin_comments | |
end | |
end |
show do
div do
render 'show', :family => family
end
default_main_content
end
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a good way to render the
default_main_content
table below Arbre content or a partial?First I tried
This only shows
default_main_content
.Does render the
show
partial, but after the main content.