search for: string_var

Displaying 1 result from an estimated 1 matches for "string_var".

Did you mean: string_val
2010 Jun 17
1
SQLite - show html from entry
Hi, I have an entry in my database that has line breaks. I want those line breaks to actually appear as line breaks when the entry is displayed. So, I did something like: <%= string_var.sub("\n","<br>":) %> It partially works. It actually replaces the < with &lt and the > symbol with &gt. Is there a work around this? Thank you, Eric -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&...