Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In rails_admin, how do I turn off the "add new" and "edit" button in relation sub-foms?

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:

enter image description here

Am I able to do this, or do I have to turn off adding and editing on the entire Page Layout model globally?

like image 933
koosa Avatar asked Oct 04 '12 15:10

koosa


1 Answers

Probably a bit late but you can use inline_add and inline_edit.

Example:

  field :profile do
    inline_add false
    inline_edit false
  end
like image 141
clarif Avatar answered Oct 21 '22 02:10

clarif