Since this is a general question about models / relationships, I figured I'd post here and see what you guys think.
I'm building a classroom attendance app, and I need help with some high level theory.
I have a Section model and a Student model.
Section has_many students
Student belongs_to Section
Now, I need to create the attendance portion. The idea is that the teacher will take attendance on the day of class (duh). I need help conceptualizing how the Attendance model will work.
I want to be able to mark a student present, absent, and late for the current day.
How should I go about structuring this? I'm stumped on how to relate the Attendance to the Student to the date.
Is it a new Attendance model? Or some association on the Student model?
Any ideas are greatly appreciated.