errors
array used by Granite::Validators
with the symbol :base
errors
array.validate_not_nil :field
- Validates that field should not be nil.validate_is_nil :field
- Validates that field should be nil.validate_is_valid_choice :type, ["allowedType1", "allowedType2"]
- Validates that type should be one of a preset option.validate_exclusion :type, ["notAllowedType1", "notAllowedType2"]
- Validates that type should not be one of a preset option.validate_uniqueness :field
- Validates that the field is uniquevalidate_not_blank :field
- Validates that field should not be blank.validate_is_blank :field
- Validates that field should be blank.validate_min_length :field, 5
- Validates that field should be at least 5 longvalidate_max_length :field, 20
- Validates that field should be at most 20 longvalidate_greater_than :field, 0
- Validates that field should be greater than 0.validate_greater_than :field, 0, true
- Validates that field should be greater than or equal to 0.validate_less_than :field, 100
- Validates that field should be less than 100.validate_less_than :field, 100, true
- Validates that field should be less than or equal to 100.