From 5eaef1abe3df5af9e66275023015bedabfdee659 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 25 Sep 2017 14:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E9=80=89=E6=8B=A9=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/games_controller.rb | 2 +- app/views/challenges/_edit_evaluating.html.erb | 4 ++-- app/views/games/_code_actions.html.erb | 2 +- app/views/games/_game_choose_results.html.erb | 2 +- app/views/games/show.js.erb | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 72d476c49..78d7dd120 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -339,7 +339,7 @@ class GamesController < ApplicationController @game.update_attribute(:final_score, score) end respond_to do |format| - format.js{redirect_to myshixun_game_path(@game, :myshixun_id => @myshixun, :choose => 1)} + format.js{redirect_to myshixun_game_path(@game, :myshixun_id => @myshixun, :choose => @right)} end end diff --git a/app/views/challenges/_edit_evaluating.html.erb b/app/views/challenges/_edit_evaluating.html.erb index 891458a70..16b58d8ea 100644 --- a/app/views/challenges/_edit_evaluating.html.erb +++ b/app/views/challenges/_edit_evaluating.html.erb @@ -49,8 +49,8 @@ <% end %>
-<%= match_specific_symbol test.input unless test.input.blank? %>
<%= match_specific_symbol test.output unless test.output.blank? %>
<%= match_specific_symbol test.input unless test.input.blank? %>
<%= match_specific_symbol test.output unless test.output.blank? %>