mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-08 14:11:42 +08:00
init project
This commit is contained in:
11
app/views/challenges/edit_choose_question.json.jbuilder
Normal file
11
app/views/challenges/edit_choose_question.json.jbuilder
Normal file
@@ -0,0 +1,11 @@
|
||||
json.(@challenge_choose, :challenge_id, :subject, :answer,
|
||||
:standard_answer, :score, :difficult,
|
||||
:position, :category)
|
||||
json.st @challenge.st
|
||||
# 选项的参数
|
||||
json.choose_contents @challenge_choose.challenge_questions do |question|
|
||||
json.(question, :option_name, :position, :right_key)
|
||||
end
|
||||
|
||||
json.tags @challenge_choose.challenge_tags.map(&:name)
|
||||
|
||||
Reference in New Issue
Block a user