Skip to content
Browse files

Fix validates_exclusion_of error message as per http://bit.ly/9kxANI

…[gmile]
  • Loading branch information...
1 parent 2f3eefc commit 56c162e75dff480ad90c8fed47a4fa3d41e411db Ryan Bigg committed Feb 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/activerecord_validations_callbacks.textile
View
2 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+

0 comments on commit 56c162e

Please sign in to comment.
Something went wrong with that request. Please try again.