diff options
author | Rajinder Yadav <devguy.ca@gmail.com> | 2010-10-04 00:02:09 -0400 |
---|---|---|
committer | Rajinder Yadav <devguy.ca@gmail.com> | 2010-10-04 00:02:09 -0400 |
commit | 018bf0f5756ef3887815ea46d6671dc1d3b526cf (patch) | |
tree | 0a43b6d883e2800743db1aaa150f4660c16db7a0 /railties/guides/source | |
parent | 0da0aa4cd9fc5f9d02a6afd78115551b4485dcb9 (diff) | |
download | rails-018bf0f5756ef3887815ea46d6671dc1d3b526cf.tar.gz rails-018bf0f5756ef3887815ea46d6671dc1d3b526cf.tar.bz2 rails-018bf0f5756ef3887815ea46d6671dc1d3b526cf.zip |
added more items to the set to improve explanation of validates_exclusion_of
Diffstat (limited to 'railties/guides/source')
-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> |