@@ -1,4 +1,6 @@
 ActiveAdmin.register User do
+  actions :all, except: [:destroy]
+
   # See permitted parameters documentation:
   # https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
   permit_params :active, :first_name, :last_name, :email_address, :client_slug, role_ids: []
ActiveAdmin.register User do
  # See permitted parameters documentation:
  # https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
  permit_params :active, :first_name, :last_name, :email_address, :client_slug, role_ids: []

  # /:id/edit page
  form do |f|
    f.inputs 'Profile' do
      f.input :email_address
      f.input :first_name
      f.input :last_name
      f.input :active
      f.input :client_slug, as: :select, include_blank: true, collection: Proposal.client_slugs
    end
    f.inputs 'Roles' do
      f.input :roles, as: :select, collection: Role.all
    end
    f.actions
  end

  # /:id page
  show do
    attributes_table do
      row :email_address
      row :first_name
      row :last_name
      row :client_slug
      row :created_at
      row :active
      row :updated_at
      row('Roles') { user.roles.map(&:name).join(', ') }
    end
  end
end

what about explicitly setting which actions we want rather than which one we don't want? that is the style I usually use for `before_action`s or `config/routes` -- the result is the same but it's nice to see which actions are enabled explicitly!