reduce the number of loop in your code. Instead of students.each do |student| student.enrol(class) end. Do students.all.enrol(class).
Vinh Tran
May 17, 2011 9:07am
k.A.