Wrong type of error in different cases #31

nathansamson opened this Issue May 6, 2012 · 2 comments


None yet

3 participants


Case 1:
validates :birth_date, :date => true, :presence => true
When not entering anything it reports: 'not a date', which is kind of true, but a better error would be the rails 'must be given'

Case 2:
validates :birth_date, :date => true, :presence => true, :allow_nil => true
Added the allow_nil clause to fix previous error. Now that works but the following case is incorrect
Entering '28-04-89' gives also 'must be given' which is incorrect, correct error should be 'not a date'...

Codegram member

Would you give a try at fixing this?

Codegram member

The second case is probably related to #37.

@oriolgual oriolgual closed this Mar 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment