I\'m quite long description that I want to truncate using truncate helper. So i\'m using the:
truncate article.description, :length => 200, :omission => \
I had the same problem, in my case i just used :escape => false
.
That worked:
truncate article.description, :length => 200, :omission => "... #{link_to('[more]', articles_path(article)}", :escape => false
From documentation :
The result is marked as HTML-safe, but it is escaped by default, unless :escape is false.... link: http://apidock.com/rails/ActionView/Helpers/TextHelper/truncate