Skip to content
This repository was archived by the owner on Jun 21, 2018. It is now read-only.

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

@jensb

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions