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
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,
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