Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nomethod error in rails view #74

Open
ntomsho opened this issue Feb 1, 2020 · 1 comment
Open

Nomethod error in rails view #74

ntomsho opened this issue Feb 1, 2020 · 1 comment

Comments

@ntomsho
Copy link

ntomsho commented Feb 1, 2020

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.

@BananaNeil
Copy link

BananaNeil commented May 11, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants