diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 51f9a5856..b69aec2e1 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -8,6 +8,7 @@ class StudentWorkController < ApplicationController def index @stundet_works = @homework.student_works.order("final_score desc") + @homework_commons = @course.homework_commons.order("created_at desc") respond_to do |format| format.html end diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb index 8ec8c2b76..be2cbbcb1 100644 --- a/app/views/student_work/index.html.erb +++ b/app/views/student_work/index.html.erb @@ -3,11 +3,11 @@