We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Followed the instructions provided for installing this gem. But get an error message. Any idea what might be the problem?
View <%= truncate_html(micropost.body, length: 40) %>
Error Msg undefined method `truncate_html' for #<#<Class:
The text was updated successfully, but these errors were encountered:
+1, facing the simillar issue, also tried inclusing "include TruncateHtmlHelper helper_method :truncate_html" with no success.
Sorry, something went wrong.
The gem you get when you gem install truncate_html is actually not this one, but this one: https://github.com/hgmnz/truncate_html
gem install truncate_html
This gem we're looking at hasn't had a commit since 2011, I think it's abandonware.
I am searching for and reviewing html truncation options.
No branches or pull requests
Followed the instructions provided for installing this gem. But get an error message. Any idea what might be the problem?
View
<%= truncate_html(micropost.body, length: 40) %>
Error Msg
undefined method `truncate_html' for #<#<Class:
The text was updated successfully, but these errors were encountered: