Re: [rails-oceania] Re: ActionMailer in rake task

2013-06-22 Thread Malcolm Locke
Hi, Try running your rake task with --trace so you can find out which line of your code is raising that error. Malc On Fri, Jun 21, 2013 at 01:11:25PM -0700, sivakumar ganesan wrote: I'm planning to write the rake task to query few details from the model and sending the notification using

Re: [rails-oceania] Re: ActionMailer in rake task

2013-06-22 Thread Nigel Sheridan-Smith
Are you declaring your notification method as an instance method or a class method? def instance_method(params) ... end notifier = Notifier.new notifier.instance_method(params) OR def self.class_method(params) ... end Notifier.class_method(params) Cheers, Nigel On Sat, Jun 22,

[rails-oceania] Re: ActionMailer in rake task

2013-06-21 Thread sivakumar ganesan
I'm planning to write the rake task to query few details from the model and sending the notification using ActionMailer object I'm getting below error when I invoke the action mailer class in my rake task, rake aborted! #NoMethodError: You have a nil object when you didn't expect it! You might