Rails 3: How to display properly text from “textarea”?
问题 In my Rails 3 application I use textarea to let users to write a new message in a forum. However, when the message is displayed, all newlines look like spaces (there is no <br /> ). Maybe there are other mismatch examples, I don't know yet. I wonder what is the most appropriate way to deal with this. I guess that the text that is stored in the database is OK (I see for example that < is converted to < ), so the main problem is the presentation. Are there build-in helper methods in Rails for