When I enter some text in a text_area with carriage returns and then
store the text in a database the carriage returns are preserved in the
db. When I get the string back the carriage returns are gone, replace by
if I enter :
the db stores:
when i show the record I get:
blah blah blah
I tried to split string by:
<% @day.food.split('\r\n').each do |line| %>
<%= line %><br/>
but it doesn't work. The \r\n is there. I put a <% p line %> in and
looked at the logs.
The string does not get split.