Giter Site home page Giter Site logo

Doesn't seem to be working about auto_html HOT 5 CLOSED

dejan avatar dejan commented on July 29, 2024
Doesn't seem to be working

from auto_html.

Comments (5)

flynfish avatar flynfish commented on July 29, 2024

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?

from auto_html.

dejan avatar dejan commented on July 29, 2024

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

from auto_html.

dejan avatar dejan commented on July 29, 2024

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

from auto_html.

lakim avatar lakim commented on July 29, 2024

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 ?

from auto_html.

dejan avatar dejan commented on July 29, 2024

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.

from auto_html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.