educoder/app/views/games/get_choose_answer.json.jbui...

7 lines
190 B

json.choose_answers do
json.array! @challenge_chooses do |choose|
json.position choose.position
json.answer choose.answer.blank? ? choose.standard_answer : choose.answer
end
end