阅读背景:

如何在create上关联现有的嵌套资源?

来源:互联网 

I have this model:

我有这个型号:

class Product < ActiveRecord::Base
  has_many :product_images, dependent: :destroy, autosave: true

  accepts_nested_attributes_for :product_images, allow_destroy: true
end
class Product < 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: