|
|
|
@ -94,7 +94,7 @@ class ExerciseAnswersController < ApplicationController
|
|
|
|
|
|
|
|
|
|
def get_exercise_question
|
|
|
|
|
@exercise_question = ExerciseQuestion.find_by_id(params[:exercise_question_id])
|
|
|
|
|
@exercise = @exercise_question.exercise.includes(:exercise_users)
|
|
|
|
|
@exercise = @exercise_question.exercise
|
|
|
|
|
@course = @exercise.course
|
|
|
|
|
@exercise_user = @exercise.exercise_users.find_by(user_id: current_user.id) #当前用户
|
|
|
|
|
@exercise_user_status = @exercise.get_exercise_status(current_user.id)
|
|
|
|
|