Skip to content

Commit 56c162e

Browse files
author
Ryan Bigg
committed
Fix validates_exclusion_of error message as per http://bit.ly/9kxANI [gmile]
1 parent 2f3eefc commit 56c162e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/guides/source/activerecord_validations_callbacks.textile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ end
240240

241241
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.
242242

243-
The default error message for +validates_exclusion_of+ is "_is not included in the list_".
243+
The default error message for +validates_exclusion_of+ is "_is reserved_".
244244

245245
h4. +validates_format_of+
246246

0 commit comments

Comments
 (0)