Rails Invalid date Error

Hello EB

I am currently facing an issue while trying to run a Railsapplication
created by someone else…

After i run the application from http://localhost:3000 i am getting an
error mentioned below.
ActiveRecord::StatementInvalid in SessionsController#create
ArgumentError: invalid date: SELECT user.* FROM user WHERE
user.email = ‘[email protected]’ LIMIT 1

Any help would be great…

Thanks.

Regards

Ankush

Ankush Ganatra wrote in post #1037905:

Hello EB

I am currently facing an issue while trying to run a Railsapplication
created by someone else…

After i run the application from http://localhost:3000 i am getting an
error mentioned below.
ActiveRecord::StatementInvalid in SessionsController#create
ArgumentError: invalid date: SELECT user.* FROM user WHERE
user.email = ‘[email protected]’ LIMIT 1

Any help would be great…

Look at the raw information in the database, what field from user table
is triggering this and what information it contains…

Clearly seems you already had data in the table, so inspect it.


Luis L.

Check all the date fields in the database to be sure they are valid
dates - especially the Date format of the db. Since you are selecting
everything from the database, the dates must convert correctly when cast
to the user class (i.e. created_at and updated_at timestamps).