How would I use validations to ensure I either received a blank value or
a ten digit number?
If I set validates_length_of :field, :in => 0…10 then that would allow
any value in-between. The allow_nil => true option does not seem to
I’ve also tried using this with some combination of
validates_numericality_of but cannot get it to work.
Any help would be greatly appreciated.