我有一个/关系accepts_nested_attributes_for
中的另一个模型的子模型。我正在尝试像这样配置控制器:has_one
belongs_to
activescaffold
config.create.columns = [:name, :birthdate, :device_attributes]
但它只是抛出这个错误:
undefined method `device_attributes' for #<Child:0xc103e28>
注意:我已经create_form
用自定义实现覆盖了默认值。