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:
<%=h field.send("message") %>
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:
<%=h field.send("message") %>
On Feb 19, 2007, at 10:30 AM, libsfan01 wrote:
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:
<%=h field.send("message") %>
Linebreaks are rendered as spaces in HTML. Use
<%= simple_format(h(field.send(“message”))) %>
– fxn
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs