Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

acts_as_textiled: Auto-formatted columns plugin for Rails

By Peter Cooper / August 21, 2006

>> story.description = "Peter flippin' _Cooper_"
=> "Peter flippin' _Cooper_" 

>> story.description
=> "<p>Peter flippin&#8217; <em>Cooper</em></p>" 

>> story.textiled = false
=> false

>> story.description
=> "Peter flippin' _Cooper_"

Chris Wanstrath has created acts_as_textiled, a new plugin for Rails that allows you to specify columns on your model to be automatically parsed as Textile content.

Comments

  1. Danno says:

    Okay, that's hot.

  2. Daniel Waite says:

    Damn hot. :) Thanks for sharing. (And thanks to Chris!)

Other Posts to Enjoy

Twitter Mentions