Skip to content

Commit 144a366

Browse files
committed
Corrected example of use of the postal code validator.
1 parent 9c0ea20 commit 144a366

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In your models, the gem provides new validators like `email`, or `url`:
2121
validates :twitter_at, :twitter => { :format => :username_with_at }
2222
validates :twitter_url, :twitter => { :format => :url }
2323
validates :twitter, :twitter => true
24-
validates :postal_code, :postal_code => { :format => :us }
24+
validates :postal_code, :postal_code => { :country => :us }
2525
end
2626

2727
class Article

0 commit comments

Comments
 (0)