Hi All,
How to validate Zip/Postal code enterd is valid based on country
selected? Is there any plugin for checking zipcode format for different
countries…
Thanks
Hi All,
How to validate Zip/Postal code enterd is valid based on country
selected? Is there any plugin for checking zipcode format for different
countries…
Thanks
On Fri, Jan 6, 2012 at 5:36 PM, savitha sreekumar
[email protected]wrote:
Hi All,
How to validate Zip/Postal code enterd is valid based on country
selected? Is there any plugin for checking zipcode format for different
countries…Thanks
I dont know on country level, but on US you can check this gem
http://rubygems.org/gems/zip-code-info
On Jan 6, 5:36am, savitha sreekumar [email protected] wrote:
Hi All,
How to validate Zip/Postal code enterd is valid based on country
selected? Is there any plugin for checking zipcode format for different
countries…
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
the input.
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):
Hope this helps!
–Matt J.
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