インストールします
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でアクティブな管理者は正しく動作しますか?