How can I do that? Text with paragraphs in show

I have this in code in show:


Observation:

<%=h @repair_ticket.observation %>

The observation is text. When I edit this observation, I put “.”,
creating several paragraphs, but when I go to show, the view gives me
all the text in one line (not doing the paragraphs I made)

On 1/15/08, John S. [email protected] wrote:

I have this in code in show:


Observation:

<%=h @repair_ticket.observation %>

The observation is text. When I edit this observation, I put “.”,
creating several paragraphs, but when I go to show, the view gives me
all the text in one line (not doing the paragraphs I made)

@repair_ticket.observation.gsub( /\n/, ‘
’ )

I’d put in a helper of course.


Greg D.
http://destiney.com/

Greg D. wrote:

On 1/15/08, John S. [email protected] wrote:

I have this in code in show:


Observation:

<%=h @repair_ticket.observation %>

The observation is text. When I edit this observation, I put “.”,
creating several paragraphs, but when I go to show, the view gives me
all the text in one line (not doing the paragraphs I made)

@repair_ticket.observation.gsub( /\n/, ‘
’ )

I’d put in a helper of course.


Greg D.
http://destiney.com/

I have the same problem.

In repair_tickets controller, in the edit method, i have:
@repair_ticket.observation = “I have to put a string here with
paragraphs”

What string should I put there?