You should not try that because the text area is designed to wrap text automatically - there really are not new line characters in the text area, unless you manually inserted them. In that case, they should remain.
On Jan 7, 9:21 pm, Zhao Yi <[email protected]> wrote: > I use text_area_tag in a view page and when its action get its value by > params[:id], all the newline will be removed. How can I keep the format > of textarea? > -- > 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 [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 -~----------~----~----~----~------~----~------~--~---

