Question: I am customizing Rails Admin : <https://github.com/sferik/rails_admin> , i need to disable/hide "Add new" option for some model.

![enter image description here](https://i.stack.imgur.com/BnswF.png)

Any help will save lot time for me. Thanks in advance

Answer: 
I use the following to achieve this on a specific model. Hopefully, this helps: 

```
config.actions do
  new do
    except ['Some Model']
  end
end

```
To have multiple models, you must put each model in single quotes. For example, consider the following configuration:

```
config.actions do
  dashboard
  index do
    except ['Address']
  end
  new do
    except ['Address', 'Employee', 'Setting']
  end
  export
  show
  edit do
    except ['Employee']
  end
end

```

This means that:

* Addresses are not included on the navbar on the left
* You cannot add a new address employee or setting with the "add new" button
* There is no pencil icon in the index view for Employees for editing.
* If you had a `User` model you could see it in the navbar, edit it, and add a new one on the index page.
* You can export every model, but not bulk delete them.