Closed tommyalvarez closed 10 years ago
For validations like so:
validates :title, length: {in: 3..200}, allow_blank: true
When validating inputs like this: judge.validate(input, validHandler, invalidHandler), if the input is left empty, none of the handlers are called. The validHandler should be called in order to be able to clean up the input. Is there any workaround?
Closing, let's continue discussion on #27.
For validations like so:
validates :title, length: {in: 3..200}, allow_blank: true
When validating inputs like this: judge.validate(input, validHandler, invalidHandler), if the input is left empty, none of the handlers are called. The validHandler should be called in order to be able to clean up the input. Is there any workaround?