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

undefined method `truncate_html' for #<#<Class #4

Open
soniacaan opened this issue Mar 11, 2016 · 2 comments
Open

undefined method `truncate_html' for #<#<Class #4

soniacaan opened this issue Mar 11, 2016 · 2 comments

Comments

@soniacaan
Copy link

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:

@ajays1991
Copy link

+1, facing the simillar issue, also tried inclusing "include TruncateHtmlHelper
helper_method :truncate_html" with no success.

@jrochkind
Copy link

The gem you get when you gem install truncate_html is actually not this one, but this one: https://github.com/hgmnz/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.

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

3 participants