Update attendance_helper.rb