Adding a top section in the index page of ActiveAdmin

activeadmin, ruby-on-rails-3

Solution

You can totally do this. You just might need to wrap it in an arbre component.

index do
  panel "Foo", :id => "foo-panel" do
    render :partial => "foo"
  end
  column :image_title
  default_actions
end

Problem

I want to add some general information on active_admin top section. For example, I want to render a partial at the top of the index page, so i can show something like If I do it like I found in the documentation, It repeats for each element. ``` index do render :partial=>'foo', :layout=>false column :image_title default_actions end ``` I want to render :partial=>'foo', :layout=>false just ONCE. Any help?

Original source