Comments (5)
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.
Provide some info on versions you're using - ruby, rails, auto_html.
from auto_html.
Ah sorry, I've just seen on SO: I am on Rails 3.2.1 and ruby 1.9.3p125
from auto_html.
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.
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)
- Soundcloud filter HOT 2
- Create an org for this gem? HOT 4
- Use this w/o DB worries. No strings attached. HOT 1
- Naming Convention HOT 1
- NameError: uninitialized constant HTML after upgrading to Rails 4.2.4 HOT 9
- Add facebook video filter HOT 3
- vimeo shows the link only HOT 1
- With new api is there a way to use old syntax auto_html_for or equivalent? HOT 1
- Why was the documentation changed? HOT 1
- Will Facebook videos be incorporated? HOT 1
- Is there a way to create thumbnail images from the video URL? HOT 2
- undefined method `auto_html_for' HOT 3
- In case of image + emoji it is not working HOT 2
- What happened to Rails integration? HOT 4
- will_paginate-bootstrap is broken auto_html HOT 3
- Rails5 deprecation warning HOT 2
- youtube_js_api returns 404 HOT 1
- undefined method `add_filter' for AutoHtml:Module (NoMethodError) HOT 1
- Where can I find the emoji image library? HOT 1
- Want to be able to autolink short domains HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto_html.