From: Alex Young Date: 2007-05-02T19:49:56+09:00 Subject: Re: How to save and display a newlinefeed with rails? anansi wrote: > <%= entry.news %>
> But the problem is that I have now textformatting inside the entry.news > field. E.g. how can I insert
after each line in entry.news? <%= entry.news.split("\n").join("
") %> or <%= entry.news.gsub("\n", "
") %> -- Alex