Module | FormValidator::ConstraintHelpers |
In: |
formvalidator.rb
|
A hash allows you to send multiple arguments to a constraint. constraint can be a builtin constraint, regexp, or a proc object. params is a list of form fields to be fed into the constraint or proc. If an optional name field is specified then it will be listed as the failed constraint in the invalid_fields hash.