Add functionality to attendances#index

Attendances#index didn't define @current_student or the absent students
Also, I had some ActiveRecord issues in student and attendance