我安装
gem 'activeadmin', github: 'gregbell/active_admin', branch: 'rails4'
它工作正常但是.. 当我单击某些资源的复选框时,批处理操作不会更改为启用。我有:
index do |description|
selectable_column
column :id
column :user
column :description
default_actions
end
batch_action :destroy, :confirm => "delete ??", :plural_model => "descriptions" do |selection|
Profile.find(selection).each { |d| d.reset_description! }
redirect_to collection_path
end
和批量操作:destroy。活动管理员在 Rails 4 中是否正确工作?