1열
1답변
before_add 콜백 사용 nested_attributes
1열
1답변
중첩 된 특성 컬렉션을 업데이트 한 후 ActiveRecord :: Base.reload를 호출해야합니까?
1열
2답변
4열
1답변
activerecord 중첩 된 특성에 대한 before_update 콜백에서 새 자식을 처리하는 방법
2열
1답변
다음과 같은 경우 객체를 삭제하는 대신 어소시에이션을 제거하십시오. allow_destroy => true
2열
1답변
어떻게 액세스 ActiveRecord :: AutosaveAssociation.marked_for_destruction? 상위 모델 내에서