hi all
my view outputs data from mysql. in mysql and in the source code there are linebreaks, but the view does not render them? can anyone tell me what i'm doing wrong?
heres my code:
<p><%=h field.send("message") %></p>
hi all
my view outputs data from mysql. in mysql and in the source code there are linebreaks, but the view does not render them? can anyone tell me what i'm doing wrong?
heres my code:
<p><%=h field.send("message") %></p>
Linebreaks are rendered as spaces in HTML. Use
<%= simple_format(h(field.send("message"))) %>
-- fxn