index do actions :edit end index do actions only: :edit end
不工作.什么是正确的语法
赞赏.
bundle show activeadmin /home/muichkine/.rvm/gems/ruby-2.1.2/bundler/gems/active_admin-9cfc45330e5a
ActiveAdmin.register YourModel do actions :index,:show,:create,:edit,:update
如果要指定某些操作的方法,可以这样做
action_item only: :show do link_to 'Edit',action: :edit # so link will only be available on show action end