On Fri, May 09, 2014 at 01:54:38PM -0700, Brian Grayless wrote:
> I looks like this might be able to be done with different query parameters and filtering.

Probably, what it does is filter out irrelevant things, so if a student_id is set, the other students aren't shown, and ditto for assignment.


It isn't amenable to a .where() clause though since the condition is relatively complex: recent_task_activity and !activity.complete?.

It could be done with two or three joined tables and probably take a few less lines, but shorter code is not always simpler code...