In my Rails 3 application I use textarea to let users to write a new message in a forum.
textarea
However, when the message is displayed, all newlines look like spac
You can use style="white-space: pre-wrap;" in the html tag surrounding the text. This respects any line breaks in the text.
style="white-space: pre-wrap;"