You probably just want the teacher's classrooms so current_user.classrooms