We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d087317 + 80be172 commit fcc8acaCopy full SHA for fcc8aca
guides/fields/validation.md
@@ -37,7 +37,7 @@ Validations can be provided with a keyword (`validates: { ... }`) or with a meth
37
All the validators below accept the following options:
38
39
- `allow_blank: true` will permit any input that responds to `.blank?` and returns true for it.
40
-- `allow_nil: true` will permit `nil` (bypassing the validation)
+- `allow_null: true` will permit `null` (from JS) and/or `nil` (from Ruby) (bypassing the validation)
41
- `message: "..."` customizes the error message when the validation fails
42
43
For example:
0 commit comments