Hello EB
I am currently facing an issue while trying to run a Rails application 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` = 'admin@admin.com' 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` = 'admin@admin.com' 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 Lavena
--
Posted via http://www.ruby-forum.com/\.
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).
···
-----Original Message-----
From: Ankush Ganatra [mailto:ankush_ganatra@yahoo.in]
Sent: Thursday, December 22, 2011 12:58 PM
To: ruby-talk ML
Subject: Rails Invalid date Error.
Hello EB
I am currently facing an issue while trying to run a Rails application 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` = 'admin@admin.com' LIMIT 1
Any help would be great....
Thanks.
Regards
Ankush
Please be aware that email communication can be intercepted in transmission or misdirected,
and that spam filtering might inadvertently screen some legitimate messages directed to me.
Please consider communicating any essential or sensitive information to me by telephone, fax
or conventional mail. The information contained in this message may be privileged and confidential.
If you are not the intended recipient, please notify me right away and destroy this message.