From 1f36ec2636dee343d4998e96d9762f90c15c6b97 Mon Sep 17 00:00:00 2001 From: huang Date: Sun, 26 Mar 2017 11:39:09 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/games_controller.rb | 2 ++ app/views/games/_game_show.html.erb | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 1c1d2e5f1..be1f3935f 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -29,8 +29,10 @@ class GamesController < ApplicationController @path = game_path @file_open = true @content = @repository.cat(@path, @rev) + logger.info("content result is ###############{@content}") else @entries = @repository.entries(@path, @rev) + logger.info("result is ###############{@entries.first.try(:path)}") end @latest_output = @game.latest_output.try(:out_put) outputs = @game.outputs diff --git a/app/views/games/_game_show.html.erb b/app/views/games/_game_show.html.erb index fad345f34..aee02f30d 100644 --- a/app/views/games/_game_show.html.erb +++ b/app/views/games/_game_show.html.erb @@ -34,7 +34,7 @@
<%= h @game.ready_knowledge.try(:html_safe) %>
-
<%= h @game.answer.html_safe %>
+
<%= h @game.answer.html_safe %>
@@ -47,6 +47,15 @@