Module FormValidator::ConstraintHelpers
In: formvalidator.rb

Methods

Public Instance methods

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.

applies a proc constraint to form[key]

Applies regexp constraint to form[key]

Applies a builtin constraint to form[key]

Delete empty fields.

Find unknown fields and delete them from the form.

Helper method to figure out what kind of constraint is being run. Valid constraint objects are String, Hash, Array, Proc, and Regexp.

Indicates if @form[key] is scheduled to be untainted.

[Validate]