如何控制字段在活动管理员编辑页面上的显示顺序?为了自定义视图页面,我更新了 admin/model 文件:
ActiveAdmin.register Church do
menu :priority => 2
scope :inactive
scope :unregistered
scope :active
scope :registered
show do
attributes_table :name, :address1, :address2, :city, :state, :zip, :office_phone,
:fax, :email1, :active, :registered
end
但是,将“show”更改为“edit”或“new”会导致无方法错误。