A ruby on rails application that tracks grades, assignments, and courses for students and teachers. Teachers can add students to classes, add assignments to classes, give students grades on those assignments and create new courses. Students have a much simpler view of just their personal yet useful information.
Most Difficult Bug(kinda)
Not really a bug but a way of visualizing data. In order to get most of the functionality of this site including the grades below I really had to step back and really picture this data and how it would interact with the site and the users interacting with it.
def add_grade_to_student
@course = Course.find(params[:course_id])
@assignment = Assignment.find(params[:assignment_id])
@student = Student.find(params[:add_grade][:student_id])
@course_grade = Enrollment.find_by(course_id:params[:course_id], student_id:params[:add_grade][:student_id])
@course_grade.update_attributes(tot_grade: @course_grade.tot_grade.to_i + params[:add_grade][:grade].to_i)
@add_grade = Grade.create(grade:params[:add_grade][:grade], assignment_id:@assignment.id, student_id:@student.id)
redirect_to assignment_show_path(course_id:@course.id, assignment_id:@assignment.id)
end
Gradebook gave me some heroku deployment issues but overall not too many. Simply weirdest bug was a day before this project was due and deployment worked in the AM but not the PM. I got it to finally work and I believe it had something to do with old data in the database. Data that didn't have the proper attributes causing errors? Once I destroyed the database and re-migrated it seemed to have been fixed like magic.
- Ruby - Programming language used
- Rails - Back-end used in creating the site
- Materialize - Front-end used for styling the site
Daniel Finelli -- danfinelli1
This project is licensed under the MIT License - see the LICENSE.md file for details