fix error

This commit is contained in:
chiu committed 2021-02-23 17:21:47 +08:00
1 parent 438f7ce792
commit da75073ecc
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
</head>
<body>
<p>
<%= @data['reply'].gsub(/[(\n)(\r)]/, "\n" => "<br/>", "\r" => "" ).html_safe %>
<%= @data['reply'].to_s.gsub(/[(\n)(\r)]/, "\n" => "<br/>", "\r" => "" ).html_safe %>
</p>
<br />
<p>此為系統自動發信,請勿直接回覆</p>
+1 -1
View File
@@ -32,7 +32,7 @@
</tr> -->
<tr>
<th><%= AskQuestion.human_attribute_name(:name) %>:</th>
<td><%= @data['name'].gsub(/[(\n)(\r)]/, "\n" => "<br/>", "\r" => "" ).html_safe %></td>
<td><%= @data['name'].to_s.gsub(/[(\n)(\r)]/, "\n" => "<br/>", "\r" => "" ).html_safe %></td>
</tr>
</table>
<p>此為系統自動發信,請勿直接回覆</p>