I want to stop people adding or editing Page Layout from inside a sub form. Basically I want to turn off the buttons in the below screenshot:
Am I able to do this, or do I have to turn off adding and editing on the entire Page Layout model globally?
Probably a bit late but you can use inline_add
and inline_edit
.
Example:
field :profile do
inline_add false
inline_edit false
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With