aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_validations.md
diff options
context:
space:
mode:
authorbarelyknown <sean@buytruckload.com>2013-06-08 12:36:53 -0400
committerbarelyknown <sean@buytruckload.com>2013-06-08 12:36:53 -0400
commit5c1a2cf6b309093ad5a6bb5d43364167ceaa7675 (patch)
treedd47cf038c056b4f5fbdacc77561e70cd83aa6c7 /guides/source/active_record_validations.md
parentb7f9de27f0558d6144f982cae83f32ca85a07f7e (diff)
downloadrails-5c1a2cf6b309093ad5a6bb5d43364167ceaa7675.tar.gz
rails-5c1a2cf6b309093ad5a6bb5d43364167ceaa7675.tar.bz2
rails-5c1a2cf6b309093ad5a6bb5d43364167ceaa7675.zip
change format example to read better when rendered with full_messages
The capital O was awkward and the validation wouldn't read "right" to the user.
Diffstat (limited to 'guides/source/active_record_validations.md')
-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
```