Validate form in rails when the user only enters spaces
I need to validate some fields so that it does not accept pure white spaces, that is, if the user only put spaces that throw an error to him. This is inside a form of ruby on rails. I already tried it with regular expressions but it did not work
Aucun commentaire:
Enregistrer un commentaire