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'...
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'...