Class: Courses::ExamsController
- Inherits:
-
GakuController
- Object
- GakuController
- Courses::ExamsController
- Defined in:
- app/controllers/gaku/courses/exams_controller.rb
Instance Method Summary collapse
Instance Method Details
#grading ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/gaku/courses/exams_controller.rb', line 12 def grading @course = Course.find(params[:course_id]) @exam = Exam.find(params[:id]) @students = @course.students @grading_methods = @course.grading_methods @grading_calculations = Grading::Collection::Calculations.new(@grading_methods, @students, @exam).calculate respond_with @exam end |
#index ⇒ Object
7 8 9 10 |
# File 'app/controllers/gaku/courses/exams_controller.rb', line 7 def index @course = Course.find(params[:course_id]) respond_with @course end |