ActiveAdmin Sort

How to get an ActiveAdmin index page to sort a specific default column when using default_scope for a resource index page? I have tried many things and nobody is working.

+4
source share
1 answer

from active documentation on admin index page :

Default Default Sort Order You can define a default sort order for index pages:

ActiveAdmin.register Post do config.sort_order = "name_asc" end 
+10
source

Source: https://habr.com/ru/post/1434494/


All Articles