This project is archived and is in readonly mode.
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:
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets...
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
-
Jarl Friis August 26th, 2009 @ 08:10 PM
Thanks Sven for creating an appropriate ticket for this issue.
Jarl
-
Rohit Arondekar October 6th, 2010 @ 06:46 AM
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>