Skip to content

How to validate blank fields? #176

Answered by ellmetha
notramo asked this question in Q&A
Discussion options

You must be logged in to vote

Why set blank: false on your model if the corresponding field in the schema is optional? Your model field should have blank: true set in order to make this validation work as expected since it appears to be optional.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@notramo
Comment options

Answer selected by ellmetha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants