yes, custom validation helps me. i modified your code a little for my need,
validate :validates_father_is_a_male private def validates_father_is_a_male errors.add(:father_id, 'is not a male') if father && father.sex == 'female' end Thanks a lot! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

