This project is archived and is in readonly mode.

#3101 ✓stale
Sven Fuchs

Make validates_inclusion_of and validated_exclusion_of pass the enum/list as an interpolation argument

Reported by Sven Fuchs | August 26th, 2009 @ 05:48 PM

As requested here:

neither validates_inclusion_of nor validated_exclusion_of currently do pass the list of allowed/disallowed values to the error message generation for interpolation, so people can not say that "the given value must be one of {{list}}"

I'm not yet sure how to provide the list (which could be an Array or Range object IIRC) as an interpolation value.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>