In rails 6, I am using activeadmin gem for admin interface.
My code is like,
ActiveAdmin.register Account, as: "Individual Accounts" do
  menu parent: "Accounts", label: "Individual Accounts"
  permit_params :first_name, :last_name, :email, :password, :role_id
  filter :first_name
  filter :email
  index do
    selectable_column
    column :first_name
    column :last_name
    column "Role" do |acc|
      acc.role
    end
    column :email
    actions
  end
  form do |f|
    f.inputs do
      f.input :first_name
      f.input :last_name
      f.input :email
      f.input :password
    end
    f.actions
  end
  show do
    attributes_table do
      row :role
      row :first_name
      row :last_name
      row :email
    end
  end
  controller do
    after_create :set_account_type
    def set_account_type resource
      resource.type = "EmailAccount"
      role = RolesPermissions::Role.find_by(name:"Individual")
      resource.role_id = role.id
      resource.save
    end
    def create
      super do |success,failure|
        success.html { redirect_to admin_individual_accounts_path }
      end
    end
  end
  controller do 
    def scoped_collection
       Account.joins(:role).where(roles: {name: "Individual"})
    end
  end
end
I want to remove New Individual Accounts button(option) from the page.
If I try to override an action_item like as mentioned below then one more button will get add
action_item only: :new do
  link_to 'Add New', new_admin_individual_account_path
end
Please help me to remove new option.
 
    