mardi 12 avril 2022

Why 0.0 throws can't be blank?

If I work with this code, and I enter 0.0 (or 0), why does it throw xyzzy can't be blank

validates :xyzzy, numericality: { greater_than_or_equal_to: 0, less_than: 100 }, allow_blank: true

Please help!

Aucun commentaire:

Enregistrer un commentaire