ordering associations on rails

I have a model called Payment that has many ChargeEvent s. they are shown on Rails Admin, but totally out of order 在这里输入图像描述

I tried configure with

  config.model 'BTR::Order' do
    show do
      include_all_fields

      field :charge_events do
        orderable :true
      end
    end

    edit do
      include_all_fields
    end
  end

and with sortable , sort_by (that failed). The documentation is scattered through github wiki pages and I couldn't find anything.

链接地址: http://www.djcxy.com/p/67066.html

上一篇: 管理宝石过滤器具有

下一篇: 在轨道上订购协会