How to create nested objects using accepts_nested_attributes_for

后端 未结 4 702
我在风中等你
我在风中等你 2021-02-04 01:28

I\'ve upgraded to Rails 2.3.3 (from 2.1.x) and I\'m trying to figure out the accepts_nested_attributes_for method. I can use the method to update existing nested o

4条回答
  •  失恋的感觉
    2021-02-04 02:09

    check this document if you use Rails3.

    http://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html#label-Validating+the+presence+of+a+parent+model

提交回复
热议问题