activeadmin: adding delete for a nested resource

前端 未结 6 1925
我在风中等你
我在风中等你 2021-02-12 10:42

I have a infrastructure object composed for many datacenters. In the apps/admin/infrastructures.rb I have the following code:

form do |f|
  f.inputs \"Infrastruc         


        
6条回答
  •  我寻月下人不归
    2021-02-12 11:02

    If you cant destroy the object nested. You need to put :_destroy in your app/admin/object.rb permit_params

    permit_params :id,:name, :cod, :_destroy
    

提交回复
热议问题