public
Description: Starter Kit for developers using Ruby on Rails to quickly get a blog up & running and then add features.
Homepage: http://www.faithfulgeek.org
Clone URL: git://github.com/faithfulgeek/blog-starter-kit.git
Joe Fiorini (author)
Wed Apr 30 22:28:09 -0700 2008
commit  c1482b0b68a24b5180dbd55330c1b89f7504e5e6
tree    fbd19e5ece3a1a7dc5a5d245861d1168c9976969
parent  a0f573afb64911e9dc977f16758c5dbc2a44e96b
blog-starter-kit / app / helpers / posts_helper.rb
100644 7 lines (6 sloc) 0.145 kb
1
2
3
4
5
6
7
module PostsHelper
  def textilize(value)
    value = value.body if value.respond_to?(:body)
    RedCloth.new(value, [:filter_html]).to_html
  end
end