aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-06-13 09:52:18 -0700
committerYves Senn <yves.senn@gmail.com>2013-06-13 09:52:18 -0700
commit399c369107a5977353ff330654ff1c5fd128cb54 (patch)
tree60182b58b05b47ed8fa9ceaf6358bdc9d4300fd6 /guides/source
parentb483a0d2a75bbec2f5eee363c88238cb612f07d6 (diff)
parent5c1a2cf6b309093ad5a6bb5d43364167ceaa7675 (diff)
downloadrails-399c369107a5977353ff330654ff1c5fd128cb54.tar.gz
rails-399c369107a5977353ff330654ff1c5fd128cb54.tar.bz2
rails-399c369107a5977353ff330654ff1c5fd128cb54.zip
Merge pull request #10890 from buytruckload/master
update format validation documetation
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/active_record_validations.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index 621d2222ff..f10f0254e5 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -357,7 +357,7 @@ given regular expression, which is specified using the `:with` option.
```ruby
class Product < ActiveRecord::Base
validates :legacy_code, format: { with: /\A[a-zA-Z]+\z/,
- message: "Only letters allowed" }
+ message: "only allows letters" }
end
```