README.md in validate_zipcode-1.0.0 vs README.md in validate_zipcode-1.1.0
- old
+ new
@@ -1,10 +1,10 @@
# ValidateZipcode
-Adds zip code / postal code validation support to Rails (ActiveModel) and test it in a simple way.
+Adds ZipCode / PostalCode validation support to Rails (ActiveModel) and test it in a simple way.
-Any other country's postal code that not in this list `list of country identification` will validate without errors.
+Any other country's postal code that not on the [list of country identification](https://github.com/RamonHossein/validate_zipcode#list-of-country-identification) will validate without errors.
## Installation
Add this line to your application's Gemfile:
@@ -22,11 +22,11 @@
## Usage
Just use as any other validator passing the country:
-ValidateZipcode expects the model to have an attribute called country to contain the country identification.
+ValidateZipcode expects the model has an attribute called country to contain the country identification.
```ruby
class Address < ActiveRecord::Base
validates :zipcode, zipcode: {country: "US"}
end
@@ -34,10 +34,11 @@
## List of country identification
| Country | Identification | Format | Link |
|:-------:|:------------:|:-----------:|:-----------:|
-| United States | US | 12345 or 12345-6789 | no link yet |
+| United States | US | 90410 or 10118-0229 | no link yet |
+| Brazil | BR | 35001-345 | no link yet |
## Error Message
If you need to localize the error message, just add this to your I18n locale file: