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

Doesn't seem to be working #38

Closed
flynfish opened this issue Mar 29, 2012 · 5 comments
Closed

Doesn't seem to be working #38

flynfish opened this issue Mar 29, 2012 · 5 comments

Comments

@flynfish
Copy link

I am trying to get this gem to work, but nothing ever gets saved in the body_html field. I posted my question on SO, any help would be appreciated!

http://stackoverflow.com/questions/9928200/railes-auto-html-gem-is-not-working

@flynfish
Copy link
Author

So I just noticed that nothing is actually stored in body_html field of the DB, but the video displays correctly when showing it in the view. Is it normal that nothing is every stored in body_html field?

@dejan
Copy link
Owner

dejan commented Mar 29, 2012

Provide some info on versions you're using - ruby, rails, auto_html.

@dejan
Copy link
Owner

dejan commented Mar 29, 2012

Ah sorry, I've just seen on SO: I am on Rails 3.2.1 and ruby 1.9.3p125

@lakim
Copy link

lakim commented May 2, 2012

Same here : I have a content attribute. Calling content_html works great, but it is not cached to the DB.
ruby-1.9.3-p0 [ x86_64 ], rails (3.2.1), auto_html (1.5.1)

Model :

class Post < ActiveRecord::Base

  auto_html_for :content do
    html_escape
    image
    youtube(:width => 450)
    link :target => "_blank", :rel => "nofollow"
    simple_format
  end

end

Schema :

create_table "posts", :force => true do |t|
  t.text     "content"
  t.text     "content_html"
end

Am I missing something ?

@dejan
Copy link
Owner

dejan commented May 5, 2012

Hi, auto_html_for didn't worked well with Rails 3.2.1+

It's fixed now. Please install the latest auto_html version (1.5.2).

Thanks for reporting the issue.

@dejan dejan closed this as completed May 5, 2012
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