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 `auto_html_for' for #<Class:0x00000003c6d038> #8

Closed
feliksg opened this issue Sep 1, 2010 · 6 comments
Closed

undefined method `auto_html_for' for #<Class:0x00000003c6d038> #8

feliksg opened this issue Sep 1, 2010 · 6 comments

Comments

@feliksg
Copy link

feliksg commented Sep 1, 2010

I'm using ruby 1.9.2 with rails 3.0.0, I included auto_html into my gem file like this: gem 'auto_html'
and included this into my model (I have a field called body)

auto_html_for :body do
html_escape
image
youtube(:width => 400, :height => 250)
link :target => "_blank", :rel => "nofollow"
simple_format
end

however, I am getting an error saying: undefined method `auto_html_for' for #Class:0x00000003c6d038

@dejan
Copy link
Owner

dejan commented Sep 1, 2010

Hi, sorry about that. I've just fixed it. Please install auto_html 1.3.3

@kmaiorini82
Copy link

I am seeing this issue again. I am using Ruby 2.2.1 and Rails 3.2.22. I am currently using auto_html 2.0.0.

Any ideas?

@swaathi
Copy link

swaathi commented Oct 7, 2016

I'm seeing this issue with Rails 5, Ruby 2.2.3 and auto_html 2.0.0. Please fix. :( If I use auto_html 1.3.3, Rails 5 throws a deprecation warning.

@niklasbabel
Copy link

same for me

@niklasbabel
Copy link

niklasbabel commented Oct 9, 2016

@swaathi hey, did u solve it? I am running Rails 4.2.5 and Ruby 2.3.0p0 and also auto_html 2.0.0

@swaathi
Copy link

swaathi commented Oct 9, 2016

I just started using this version of it, https://github.com/dgilperez/auto_html/. Or you can downgrade to 1.6.4 (I think) to get this working again, but then 1.6.4 has warnings with Rails 5. However, the dgilperez version fixes all of this. Though it is not by the author himself, but this maintainer has committed somewhat.

_
Swaathi K
CTO, Skcript

On Oct 9, 2016, at 8:27 PM, niklasbabel notifications@github.com wrote:

@swaathi hey, did u solve it? I am running Rails 4.2.5 and Ruby 2.3.0p0 and also auto_html 2.0.0 (I guess, just installed it few days ago)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

This issue was closed.
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

5 participants