You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
586 B
19 lines
586 B
6 years ago
|
json.exercise do
|
||
|
json.extract! @bank, :id, :name, :description, :is_public
|
||
|
end
|
||
|
|
||
|
json.partial! "exercises/exercise_scores"
|
||
|
|
||
|
json.exercise_questions do
|
||
|
json.array! @exercise_questions do |q|
|
||
|
json.partial! "exercise_questions/exercise_questions",
|
||
|
question: q,
|
||
|
choices:q.exercise_bank_choices,
|
||
|
shixun_challenges: q.exercise_bank_shixun_challenges,
|
||
|
exercise_type:1,
|
||
|
user_answer:[],
|
||
|
shixun_type:0,
|
||
|
ques_position:nil,
|
||
|
edit_type:nil
|
||
|
end
|
||
|
end
|