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

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to