简体   繁体   中英

ActiveAdmin Sorting

How do you get ActiveAdmin index page to sort a certain column on default beside using default_scope for the resource index page? I tried many things and none works.

from active admin index page documentation :

Index default sort order You can define the default sort order for index pages:

ActiveAdmin.register Post do
  config.sort_order = "name_asc"
end

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM