OSDN Git Service

fix display bug when show result
authorTomohiro Nishimura <tomohiro68@gmail.com>
Fri, 26 Mar 2010 09:20:54 +0000 (18:20 +0900)
committerTomohiro Nishimura <tomohiro68@gmail.com>
Fri, 26 Mar 2010 09:20:54 +0000 (18:20 +0900)
app/views/reports/_arithmetic.html.erb

index d56eeec..474b3ac 100644 (file)
@@ -14,7 +14,7 @@
         <td><%=h index+1 %></td>
         <td class="LaTeX">`<%=h Mint::Builder.build(result.problem_expression).to_ascii_math_ml %>`</td>
         <td class="LaTeX">`<%=h result.answer %>`</td>
-        <td class="LaTeX">`<%=h result.example_solution %>`</td>
+        <td class="LaTeX">`<%=h Mint::Builder.build(result.example_solution).to_ascii_math_ml %>`</td>
         <td><%= judgement(result.correct?) %></td>
       </tr>
     <%- end -%>