I have an object O with two ‘collections’. The minimum size for B is
A.length
Also, B has to be a proper subset of A.
What is the correct way to validate B?
David
I have an object O with two ‘collections’. The minimum size for B is
A.length
Also, B has to be a proper subset of A.
What is the correct way to validate B?
David
In a custom validate method.
http://rails.rubyonrails.com/classes/ActiveRecord/
Validations.html#M000671
–
– Tom M.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs