Topic: Word_wrap not wrapping?
I seem to be having some difficulties with the word_wrap text helper. In my view I have something that goes a little like this...
<%= word_wrap(@sample.description, line_width = 40) %>
Which really ought to be a textbook example of the word wrap function. However, the description (@sample.description) is displayed unwrapped. There aren't any errors or other difficulties that I can see, the word_wrap helper is just displaying the text without doing anything to it. Is there something I'm missing? The helper for truncate() worked just fine, so I'm reasonably certain there's nothing particularly boneheaded with my syntax.