In a form field, if i user decides to hit enter to start new lines, when they submit, they new lines don''t start as new lines. There is a whole stream of text. How do i make it so if the user hits enter during a text field, it dispalys a new line? Thanks -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> In a form field, if i user decides to hit enter to start new lines, > when they submit, they new lines don''t start as new lines. There is a > whole stream of text. > > How do i make it so if the user hits enter during a text field, it > dispalys a new line? Thankssimple_format should do what you want. http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001751 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
thanks phillip, it looks great, but I am really relaly bad at reading API''s (especially when im not good with a language) Could u just explain relaly quick what I need to do to get the bare minimums working? Thanks! On Apr 13, 8:41 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote:> > In a form field, if i user decides to hit enter to start new lines, > > when they submit, they new lines don''t start as new lines. There is a > > whole stream of text. > > > How do i make it so if the user hits enter during a text field, it > > dispalys a new line? Thanks > > simple_format should do what you want. > > http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html...-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Zhu wrote:> thanks phillip, it looks great, but I am really relaly bad at reading > API''s (especially when im not good with a language) > > Could u just explain relaly quick what I need to do to get the bare > minimums working? Thanks!You''re kidding, right? If you''re too lazy to read documentation, why should anyone else do it for you? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
wow marnen, chill ok? I read the API, but its only like 3 sentences, and its not enough info for me to get started. I dont know wehre to put those lines. But now I understand, I watched one of Ryan Bates tutorials, and in it, one of the things he does is use simple_format And let me tell u, what the api said is not comprehendible on how to use it. without Ryan B showing us, i would not have gotten it. thanks phillip for telling me about simple_format On Apr 15, 1:27 am, Marnen Laibow-Koser <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> David Zhu wrote: > > thanks phillip, it looks great, but I am really relaly bad at reading > > API''s (especially when im not good with a language) > > > Could u just explain relaly quick what I need to do to get the bare > > minimums working? Thanks! > > You''re kidding, right? If you''re too lazy to read documentation, why > should anyone else do it for you? > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.