Rails_admin:如何删除rails 4中的嵌套对象?
我有:
class Entity < AR::Base has_many :representatives, inverse_of: :entity, dependent: :destroy accepts_nested_attributes_for :representatives, allow_destroy: true end
并且Entity的rails管理表单允许我内联创建嵌套代表。 但是,在我们已经保存后,我无法通过实体的嵌套表单删除代表。 我怀疑这与rails 4有关,因为还有其他类似的问题,答案不起作用:
Rails管理员 – 删除相关对象