Hi,
RailsAdmin is awesome, but I have a little problem:
I want to exclude default actions like :edit or :delete or 'show in Application' on a global or per model base.
The Actions Page in the Wiki includes a lot of information about adding custom actions, but theres no information about hiding default actions.
The example for customisation does not work and throws an error ("[action] already exists")
There's some more info in the wiki which may be outdated or I simply do not understand, e.g. this:
This may help but – where do I have to add those action blocks?
I would like to do something like this:
config.model 'Model' do
edit {hide}
new {hide}
// or
actions.exclude [:new, edit]
end
end
ReadOnly-Models would also be a proper solution, but read-only is implemented per attribute.
I also don't want to use CanCan because i don't need authorisation here.
Either I am totally stupid or - is it really so hard to configure rails_admin actions?
I'm running Rails 4 with rails_admin 0.5.0.
greetings,
ecki