ActiveAdmin display default view content

Viewed 8444

I am working with ActiveAdmin and need to make customizations to some views and have come across a couple of scenarios I feel I am doing wrong.

I am adding an additional table to a show view (comments on Posts). This requires me to rewrite the whole attributes table and then add my panel. Is there a way to customize views without losing the default content?

I would also like to add a table of associated items on the show view which doesn't need to be customized is there any way to include the default tale that would normally be on the index view with default actions and paging?

4 Answers

Just figured that out myself: For the default table index page you can do something like this

index do
  h1 "Hello World"
  p "get more content"

  instance_eval(&default_table)
end
Related