timcharper / calendar_date_select

A previously popular but no longer maintained JavaScript DatePicker for RubyOnRails (and others)
http://code.google.com/p/calendardateselect/
Other
409 stars 179 forks source link

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

Open jensb opened 14 years ago

jensb commented 14 years ago

How to reproduce:

Create Rails form with calendar date select and format = finnish (dd.mm.yyyy). 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.