Uniqueness validation on mult. attrs. / validation order


  1. Is there any easier way than writing a custom validate() method to
    enforce the uniqueness of more than one attribute?

  2. Given a parent/child relationship between AR classes (i.e. parent
    “has_many” children) - is there any way to enforce that the validation
    for the parent happens first before the validation of the children?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs