Monday, 15 September 2014

Don't validate nested attributes in rails -


I do not want to be valid & amp; Save nested attributes for the model while saving the parent model.

  In the class there is a car: Model Nested_ATEDS_for model: model and class model comes: car and car = car. Create (name: "Tata") Car Model_attributes ({name: "Nano"}, {name: "Vista"}) car.save!  

you set : auto-save to false Trying to save nested attributes can be prevented.

  is a class car: Model, AutoShare: False End  

No comments:

Post a Comment