Invalid year entered -> date field will be set to nil AFTER validations #8

jensb opened this Issue Jul 20, 2010 · 0 comments


None yet
1 participant

jensb commented Jul 20, 2010

How to reproduce:

Create Rails form with calendar date select and format = finnish (
Add "validates_presence_of :date" to rails model.

Enter invalid date into input field (e.g. "25.6.20101", superfluous "1").

Post form.

--> date field will be nil in database, although validates_presence_of was used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment