diff options
author | Ryan Bigg <ryan@getup.org.au> | 2010-02-28 09:42:06 +1100 |
---|---|---|
committer | Ryan Bigg <ryan@getup.org.au> | 2010-02-28 09:42:06 +1100 |
commit | 56c162e75dff480ad90c8fed47a4fa3d41e411db (patch) | |
tree | 8890697267fb44cd432653a568e865a63da2143a /railties/guides/source | |
parent | 2f3eefcdca1d5dda42be1456349b8c6c79195f1e (diff) | |
download | rails-56c162e75dff480ad90c8fed47a4fa3d41e411db.tar.gz rails-56c162e75dff480ad90c8fed47a4fa3d41e411db.tar.bz2 rails-56c162e75dff480ad90c8fed47a4fa3d41e411db.zip |
Fix validates_exclusion_of error message as per http://bit.ly/9kxANI [gmile]
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/activerecord_validations_callbacks.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/activerecord_validations_callbacks.textile b/railties/guides/source/activerecord_validations_callbacks.textile index dc61021f76..83c85402ec 100644 --- a/railties/guides/source/activerecord_validations_callbacks.textile +++ b/railties/guides/source/activerecord_validations_callbacks.textile @@ -240,7 +240,7 @@ end The +validates_exclusion_of+ helper has an option +:in+ that receives the set of values that will not be accepted for the validated attributes. The +:in+ option has an alias called +:within+ that you can use for the same purpose, if you'd like to. This example uses the +:message+ option to show how you can include the attribute's value. -The default error message for +validates_exclusion_of+ is "_is not included in the list_". +The default error message for +validates_exclusion_of+ is "_is reserved_". h4. +validates_format_of+ |