I created a custom page with ActiveAdmin as follows:
ActiveAdmin.register_page "message_list" do
controller do
def index
@collection = client().account.messages.list.sort_by{ |message| Date.rfc2822(message.date_sent) }.reverse
render :layout => 'active_admin'
end
end
end
I created an index.html.erb file with the table that I want to display on this page. This, however, is not optimal. How to use the standard table of active administrator tables, which also comes with pagination and display it with my table information? I know that the ActiveAdmin PageDSL class does not contain #index and therefore I cannot just do:
index do
selectable_column
id_column
column :to
column :from
default_actions
end
In addition to reaching the layout of the ActiveAdmin table on the user page, how do I change the name of the page itself? At the moment it is called "Index".
stecd source
share