rails error on create action
Posted
by ash34
on Stack Overflow
See other posts from Stack Overflow
or by ash34
Published on 2010-05-25T05:08:11Z
Indexed on
2010/05/25
5:11 UTC
Read the original article
Hit count: 258
ruby-on-rails
SQL (2.0ms) SELECT task_report_requests_seq.NEXTVAL id FROM dual
TaskReportRequest Create (2.2ms) INSERT INTO task_report_requests (location, created_at, updated_at, id, freq, login, task_dt) VALUES('020', TO_DATE('2010-05-25 05:02:38','YYYY-MM-DD HH24:MI:SS'), TO_DATE('2010-05-25 05:02:38','YYYY-MM-DD HH24:MI:SS'), 10023, 'M', NULL, TO_DATE('2010-05-30 00:00:00','YYYY-MM-DD HH24:MI:SS'))
NoMethodError (You have a nil object when you didn't expect it! The error occurred while evaluating nil.call): app/controllers/task_report_requests_controller.rb:45:in `create'
It says error evaluating nil.call . Can someone tell me when I would get such an error. I am not able to figure out with this information.
thanks, ash
© Stack Overflow or respective owner