Forum: Ruby validates_format_of :zipcode

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
misiek (Guest)
on 2006-03-17 20:51
(Received via mailing list)
how can I set the validation of the zipcode ?
Jon M. (Guest)
on 2006-03-17 22:04
you'll want to try a regexp.  look here for the code

it's in there somewhere...
hope this helps
This topic is locked and can not be replied to.