diff options
author | Xavier Noria <fxn@hashref.com> | 2010-10-19 23:07:29 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-10-19 23:07:29 +0200 |
commit | d619b9d1d1ad8d7497bf24283b2318c056283f48 (patch) | |
tree | d0a937b8630d4244eb91f45398dfe2be69ba6c45 /railties/guides/source/active_record_validations_callbacks.textile | |
parent | 95d87823d4c9837e7a491fb4469869c5b2de5e05 (diff) | |
parent | e43de58ab449218ab2d56e30e54e429aadcb8a1b (diff) | |
download | rails-d619b9d1d1ad8d7497bf24283b2318c056283f48.tar.gz rails-d619b9d1d1ad8d7497bf24283b2318c056283f48.tar.bz2 rails-d619b9d1d1ad8d7497bf24283b2318c056283f48.zip |
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'railties/guides/source/active_record_validations_callbacks.textile')
-rw-r--r-- | railties/guides/source/active_record_validations_callbacks.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_validations_callbacks.textile b/railties/guides/source/active_record_validations_callbacks.textile index a8ccfc7e40..a9d66c0a06 100644 --- a/railties/guides/source/active_record_validations_callbacks.textile +++ b/railties/guides/source/active_record_validations_callbacks.textile @@ -235,7 +235,7 @@ This helper validates that the attributes' values are not included in a given se <ruby> class Account < ActiveRecord::Base - validates_exclusion_of :subdomain, :in => %w(www), + validates_exclusion_of :subdomain, :in => %w(www us ca jp), :message => "Subdomain %{value} is reserved." end </ruby> |