So I have a Product Model that has nested attributes for Product_Property Model and it has nested attributes for Property Model. And I want to dynamically create attributes of both ProductProperty & Property Model. In my view when I click on the "Add more attributes" link it only creates new fields for the product_properties form and not for the property form which is nested inside the product_properties form.
So how do I create the property form and the product_properties form together with a click?
I have 3 models, Products, Property & ProductProperty. Here's how they relate : The
Product
model:The
Property
Model:And the
ProductProperty
Model:The Product form:
Inside the
product_property_fields
partial:So I have a Product Model that has nested attributes for Product_Property Model and it has nested attributes for Property Model. And I want to dynamically create attributes of both ProductProperty & Property Model. In my view when I click on the "Add more attributes" link it only creates new fields for the
product_properties
form and not for theproperty
form which is nested inside theproduct_properties
form.So how do I create the
property
form and theproduct_properties
form together with a click?