aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2014-10-19 23:45:22 +1030
committerMatthew Draper <matthew@trebex.net>2014-10-19 23:45:22 +1030
commit0dfc4fa1774296ebbbf891f101e2a39225af6502 (patch)
tree913931ec172a1a679c0f3c46aeaf59f21b8f6415 /guides/source
parentc3fc00e005df5dff129ced2714952d95579bba7d (diff)
parentb9a67bf3d2dff257b313442f9eb970bcf7e3b916 (diff)
downloadrails-0dfc4fa1774296ebbbf891f101e2a39225af6502.tar.gz
rails-0dfc4fa1774296ebbbf891f101e2a39225af6502.tar.bz2
rails-0dfc4fa1774296ebbbf891f101e2a39225af6502.zip
Merge pull request #17319 from igas/fix-17318
fix wrong example from #17318 [ci skip]
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 332af44e79..1c1b863fe9 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -706,7 +706,7 @@ we don't want names and surnames to begin with lower case.
```ruby
class Person < ActiveRecord::Base
validates_each :name, :surname do |record, attr, value|
- record.errors.add(attr, 'must start with upper case') if value =~ /\A[[:alpha:]]/
+ record.errors.add(attr, 'must start with upper case') if value =~ /\A[[:lower:]]/
end
end
```