rails error on create action
- by ash34
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