views:

25

answers:

1

Ruby doesn't seem to have any method to convert my text to HTML before putting it on the page, so newlines do not appear. What am I missing?

+4  A: 

The simple_format view helper is typically a good starting point for this sort of thing.

Dave Pirotte
Thanks; it works great, but what do you mean by saying it's a starting point?
Josh
When you will come to the point, where newlines aren't enough for formatting, then check stuph like RedCloth, BlueCloth, RDiscount, etc.
mdrozdziel