Reputation: 99
Rails version: 3.0.3
Ruby: 1.9.2pre
In a running app, I'm putting the auto_html(https://github.com/dejan/auto_html) in gemfile, then ran bundle install ok.
but none methods from auto_html seems to work.
rails server load normally, but auto_html method, and auto_html_for doesn`t work always get errors like:
undefined method `auto_html' for #<#<Class:0x00000102c63330>:0x00000102c60ae0>
I know is a loading problem, but I am not getting any error, and I use many others gems.
any clue?
Upvotes: 1
Views: 714
Reputation: 5192
you might have found out, but this :
include AutoHtml
has to be added somewhere
Upvotes: 1
Reputation: 8130
This should probably be done in the lib itself, but currently to use it like that (auto_html method in the template) you'd have to include AutoHtml module in ApplicationHelper.
Upvotes: 0
Reputation: 1
maybe the gemfile isn't named like the library? bcrypt as an example has to be defined in Gemfile like:
gem 'bcrypt-ruby', :require => "bcrypt"
Upvotes: 0