I have this in code in show: <p> <b>Observation:</b><BR> <BLOCKQUOTE> <%=h @repair_ticket.observation %> </BLOCKQUOTE> </p> 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) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 1/15/08, John Smith <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I have this in code in show: <p> > <b>Observation:</b><BR> > <BLOCKQUOTE> <%=h @repair_ticket.observation %> </BLOCKQUOTE> > </p> > > 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/, ''<br />'' ) I''d put in a helper of course. -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Greg Donald wrote:> On 1/15/08, John Smith <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> I have this in code in show: <p> >> <b>Observation:</b><BR> >> <BLOCKQUOTE> <%=h @repair_ticket.observation %> </BLOCKQUOTE> >> </p> >> >> 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/, ''<br />'' ) > > I''d put in a helper of course. > > > -- > Greg Donald > 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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---