0
관련 모델의 속성을 검증하는 가장 간단한 방법은 무엇입니까?은 연관된 모델의 특정 속성을 확인합니다.
Item
belongs_to :user
validates_presence_of :user
# AND the "is_photographer" column for that user must be true
User
has_many :items
# can be a regular user or a photographer
굉장합니다. 4 분 안에 허용되면 올바른 것으로 표시합니다. – brittohalloran