@students_for_this_thing = Student.joins(blah.....

Just wrap it in an instance variable and pass it over just like you would for any other view.