Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Open
jensb opened this Issue · 0 comments

1 participant

@jensb

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.