Not even using that method.. forgot to take it out  


On Wednesday, May 22, 2013 at 2:46 PM, Jason Draper wrote:

> In app/controllers/instructor/sections_controller.rb:
> > + end > + > + > + > + > + private > + > + def get_section_students > + @section = Section.find(params[:id]) > + @grade = Grade.find_by_id(params[:grade_id]) > + end > + > + def find_grades_for_student > + get_section_students > + @section.students.each do |student| > + @grades = Grade.where("student_section_enrollment_id = ?", student)  
>  
> This @grades (https://github.com/grades) is overwritten for every single iteration here so you're not doing what you think you are.
> Also:
> Grade.where(student_section_enrollment_id: student)  
>  
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/jmabry111/rubysis/pull/22/files#r4345882).