@ -145,7 +145,7 @@ class ExercisesController < ApplicationController
#试卷的内容,及试题/答案的内容编辑
def edit
ActiveRecord::Base.transaction do
@exercise_questions = @exercise.exercise_questions.order("question_number ASC")
@exercise_questions = @exercise.exercise_questions.includes(:hack).order("question_number ASC")
end
@ -121,4 +121,9 @@ elsif question.question_type == 5
elsif question.question_type == 6
hack = question.hack
json.hack_identifier hack.identifier
json.description hack.description
json.hack_id hack.id