Combine 3 select fields and validate as one in my User model in ruby on rails 3
- by Psychonetics
Ok I have 3 select boxes for selecting date of birth.
I have constants setup in my User model to provide months, years etc..
Anyway I can successfully validate these select boxes separately.
What I want to do is combine the :day, :month and :year and store in :birthday and validate the whole date as one so I can return 1 error rather than 3…