From 5c1a2cf6b309093ad5a6bb5d43364167ceaa7675 Mon Sep 17 00:00:00 2001 From: barelyknown Date: Sat, 8 Jun 2013 12:36:53 -0400 Subject: 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. --- guides/source/active_record_validations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/active_record_validations.md') 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 ``` -- cgit v1.2.3