how do you validate dates of models

Mass assignment, methods like new and create (i.e. those which take a hash of attribute names to variables appear to all nil out values that dont match.

But if you instead did.

u = User.new u.born = "foo" # or equivalently u[:born] = "foo"

you can get the string back with

u.born_before_type_cast