Rendered column plugin

Plugin details

rendered_column plugin which will render Textile (actually, a variety of useful formats) as HTML and save it to a special rendered_* column in your database. This leaves us using something like story.rendered_description.

Repositoryhttp://www.mattmccray.com/svn/rails/plugins/rendered_column/ Tags Textile, RedCloth LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://www.mattmccray.com/svn/rails/plugins/rendered_column/
class Blog < ActiveRecord::Base
    rendered_column :body, :use_erb=>true
    rendered_column :summary, :format=>'markdown' 
end



By default, this will try to save the resulting HTML in the AR fields 'rendered_body' and 'rendered_summary'. You can override that by setting :prefix and :postfix. Defaults are:

:prefix=>'rendered_'
:postfix=>'',
:format=>'textile'
:use_erb=>false

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: scott, 9 months ago