Sha256: ec9c08b3c1af3c1d62fa05d36684bbd96526f8f378d288135e0bac37134d790c
Contents?: true
Size: 544 Bytes
Versions: 3
Compression:
Stored size: 544 Bytes
Contents
# Customizing the Show Screen Customizing the show screen is as simple as implementing the show block: ActiveAdmin.register Post do show do h3 post.title div do simple_format post.body end end end The show block is rendered within the context of the view and uses the Arbre HTML DSL. You can also render a partial at any point. ActiveAdmin.register Post do show do # renders app/views/admin/posts/_some_partial.html.erb render "some_partial" end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
activeadmin-0.3.1 | docs/6-show-screens.md |
activeadmin-0.3.0 | docs/6-show-screens.md |
nsm-activeadmin-0.2.2 | docs/6-show-screens.md |