Why all here? Why not @task.person and @task.movie to get the associated tasks? 

Oh... I bet this is for selector magic. Sorry.