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.
上一篇: 管理宝石过滤器具有
下一篇: 在轨道上订购协会