Displaying 1 result from an estimated 1 matches for "dueddat".
Did you mean:
dueddate
2011 Jul 28
14
Actionmailer Help Needed
...play a set of found
records.
We have a simple actionmailer rake task that is supposed to send a daily
email digest of tasks that are due for a specific user. So far, it''s
working but the email only displays the first message.
In my task model
scope :tasksdue, lambda {
where("dueddate > ? AND status = ?", Date.today, false)
}
def self.send_reminders
Task.tasksdue.find_each do |task|
TaskMailer.deliver_task_due task
end
task_mailer.rb
class TaskMailer < ActionMailer::Base
def task_due(task)
recipients @task.user.email
from "e...