truncate_html
truncate_html copied to clipboard
Nomethod error in rails view
I have tried installing this gem with both bundle install and gem install and my rails app is unable to find the truncate_html method. I keep getting a nomethod error.
This gem mixes the truncate_html call into your view helpers. In rails 3+, you can call it anywhere via:
ActionController::Base.helpers.truncate_html(content, length: 300)