|| at Jan 7, 2012 at 3:31 pm
On Jan 6, 5:36 am, savitha sreekumar wrote:
How to validate Zip/Postal code enterd is valid based on country
selected? Is there any plugin for checking zipcode format for different
Depends on what you want the postcode for. If it's for something like
geocoding, you might be better off relying on the geocoder to validate
There's some stuff about this, but the validation is ultimately
country-specific (and can change - apparently Ireland is debating the
creation of a postcode system):
- validates postcodes for
UK, US, Canada, Australia, New Zealand, and South Africa
- not directly applicable, but this is a Perl module with regexes for
more countries. The syntax should translate readily to Ruby
Hope this helps!
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.