Field note
What it does
Teaches built-in validations, options, conditional and strict validations, custom validators, and handling validation errors.
Capabilities
Available capabilities
Tags
Tags
Ways to use it
Ways to use it
sdk
ruby / activerecord
Rails feature for validating Active Record objects before saving to the database.
Field note
Teaches built-in validations, options, conditional and strict validations, custom validators, and handling validation errors.
Capabilities
Tags
Ways to use it
ruby / activerecord
Product features
Validates attributes against a regular expression.
Validates the length of attribute values.
Validates that attributes are numeric.
Validates that specified attributes are not empty.
Raises exceptions when validation fails.
Validates that the attribute value is unique.