Re: Actionmailer Help Needed

Jenny Blunt
Fri, 29 Jul 2011 11:35:50 -0000

Hi Fred

We created some controller actions to list all tasks, due and overdue as
below:

In our tasks controller:

List current user''s due tasks:

@my_due = Task.find(:all, :conditions => ["dueddate <= ? AND user_id
= ?
AND status = ?", Date.today + 7.days, current_user.id, false], :include
=> :taskcategories, :order => "dueddate asc")

I actually can''t figure out how to list all the users with overdue
tasks.

(We''re using devise for authentication, hence the current_user bit)

Is that what you mean?

Sorry for the newbie questions...

Jenny