문제

Using autosave: true on a has_one or has_many association means that when the parent record is saved, its association(s) are saved as well.

But what if I need the parent to be saved whenever (any of) its association(s) are saved?

도움이 되었습니까?

해결책

You can also use autosave:true on a belongs_to relationship to automatically save the parent.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top