I am facing one strange problem with date_select tag. I am using it for
getting birth date from user.
I am using rails 2.0.2, and to save birth date in database, I am using
DATETIME as datatype. But when I put year below 1970, it gives me
database error as "ActiveRecord: :MultiparameterA ssignmentErrors ".
What can be the problem for it? What is the solution for it?
I am facing one strange problem with date_select tag. I am using it
for
getting birth date from user.
I am using rails 2.0.2, and to save birth date in database, I am using
DATETIME as datatype. But when I put year below 1970, it gives me
database error as "ActiveRecord: :MultiparameterA ssignmentErrors ".
Probably because you're on a platform where ruby's Time class can't
represent times before 1st Jan 1970. Ruby's DateTime class does not
have this limitation. You could override the mapping of DateTime
columns in the adapter file for your database.