On Jul 24, 4:05 pm, "C, D." <[email protected]> wrote:

> Now whenever I want to display this value read-only in one of my views I
> cant simply do <%= @model.description %>. This will cause the text to be
> printed as:
> 'This is line one.This is line two'
>
> How do I get the text to be displayed correctly with, I guess, HTML
> <br/> and other escape characters included? Im sure there should be a
> helper or something that accomplishes this already in Rails 2.3.2

simple_format does that.

Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to