Adding linebreaks

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