Theocacao
Leopard
Design Element
Comment on "Rails validates_length_of and Fixnum"
by John Sturgeon — Oct 09
I know it's an old thread, but zips can be validating using the following:
validates_format_of :zipcode, :with=>/\A[0-9]{5}\Z/, :if=>:zipcode?
Back to "Rails validates_length_of and Fixnum"
Design Element

Copyright © Scott Stevenson 2004-2015