On Dec 16, 2010, at 9:06 PM, John Sayeau wrote:
I tried to split string by:
<% @day.food.split('\r\n').each do |line| %>
<%= line %><br/>
<%end%>
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.
anyone help?
Try this:
<%= simple_format( @day.food ) %>
and see what you get then.
Walter
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.