Hello Ruby forum,
I’ve been looking at the other threads before posting this, but I can’t
find a good solution to the problem I’m having.
The problem: in one of my views, I have the following code:
<% for column in BlogPost.content_columns %>
<% end %>
This does exactly what it’s supposed to do - it preserves the line
breaks and carriage returns entered into my text fields by adding
,
and suchlike. But that's all it does. If I entered:
“Please
have
a nice day”
into the “body” text field of my blog engine, I would get:
“Please
have
a nice day”
back (I left some HTML code out, but you get the idea).
How do I get back exactly what I entered? If you answer, would you mind
posting some code? I still haven’t seen a code example that solves this
problem. Thanks in advance!