Rails 3: Uniqueness validation for nested fields_for

后端 未结 3 1438
不知归路
不知归路 2020-12-29 11:46

A have two models, \"shop\" and \"product\", linked via has_many :through.

In the shop form there are nested attributes for multiple products, and I\'m having a litt

3条回答
  •  自闭症患者
    2020-12-29 12:41

    I found the answer over here :

    https://rails.lighthouseapp.com/projects/8994/tickets/2160-nested_attributes-validates_uniqueness_of-fails

提交回复
热议问题