Displaying 1 result from an estimated 1 matches for "deliver_reminder_messag".
Did you mean:
deliver_reminder_message
2008 Nov 12
4
Help! getting a "can't dup NilClass" error and don't know what to do about it.
...AR:Mailer. But I am
getting a "can''t dup NilClass" when I hit it with a http request.
**********************************
def message
@reminders = Reminder.find(:all, :order => "created_at DESC", :limit
=> 5)
for reminder in @reminders
ReminderMailer.deliver_reminder_message(reminder)
reminder.destroy
end
render :nothing => true, :status => 401 # Unauhorized
end
************************************
I believe the Mailer class is working right. Although when I remove
the ReminderMailer line the rest of the method works fine.
Please help if I am a...