fix error

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

View File

@ -5,7 +5,7 @@
</head> </head>
<body> <body>
<p> <p>
<%= @data['reply'].gsub(/[(\n)(\r)]/, "\n" => "<br/>", "\r" => "" ).html_safe %> <%= @data['reply'].to_s.gsub(/[(\n)(\r)]/, "\n" => "<br/>", "\r" => "" ).html_safe %>
</p> </p>
<br /> <br />
<p>此為系統自動發信,請勿直接回覆</p> <p>此為系統自動發信,請勿直接回覆</p>

View File

@ -32,7 +32,7 @@
</tr> --> </tr> -->
<tr> <tr>
<th><%= AskQuestion.human_attribute_name(:name) %></th> <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> </tr>
</table> </table>
<p>此為系統自動發信,請勿直接回覆</p> <p>此為系統自動發信,請勿直接回覆</p>