search for: body_html

Displaying 4 results from an estimated 4 matches for "body_html".

2006 Jan 27
9
RedCloth Hard Breaks
Has anybody gotten :hard_breaks to work with RedCloth? I''m doing: self.body_html = RedCloth.new(self.body).to_html(:textile) which works, except that it doesn''t transform hard breaks to <br /> tags, which is really important for me. However, if I do: self.body_html = RedCloth.new(self.body, [ :hard_breaks ]).to_html(:textile) then it converts ALL breaks into...
2006 Feb 27
12
RedCloth
Is this the prefered method to implement RedCloth in your views. I''m trying to display user input that will sometimes have code references in it. This strips out all tags. I would like for the tags to be displayed but not read as html. Thanks in advance! <%= RedCloth.new(strip_tags(comment.comment),[:filter_html]).to_html %> charlie bowman recentrambles.com -- Posted via
2006 Mar 29
2
Rake Migrations for Rails 1.1
...ollowing: class Realtorex < ActiveRecord::Migration def self.up create.table "pages", :force => true do |t| t.column "id", :integer t.column "name", :string t.column "title", :string t.column "body", :text t.column "body_html", :text t.column "user_id", :integer t.column "updated_at", :datetime t.column "created_at", :datetime end create.table "users", :force => true do |t| t.column "id", :integer t.column "login", :string t.col...
2006 Sep 26
12
resource_feeder feedback
Let me apologize in advance as this is a topic that I feel passionate and opinionated about. If I''m coming on too strong, please forgive me. === Be opinionated=== My first piece of advice is simple: be opinionated. Change the method name to simply <feed_for>. Have it default to doing the right thing. Perhaps give an option to change the default feed format, but default to