module GollumEditor module FormHelper def gollum_editor(object_name, method, options = {}) if options[:id] options[:id] << " gollum-editor-body" else options[:id] = "gollum-editor-body" end controls = '
Bold Italic Code   Unordered List Ordered List Blockquote Horizontal Rule   h1 h2 h3   Link Image   Help


' input = text_area(object_name, method, options) puts "After input" content_tag(:div, (controls.html_safe + input), { :id => 'gollum-editor' }) end def self.included(arg) ActionView::Helpers::FormBuilder.send(:include, GollumEditor::FormBuilder) end end end ActionView::Helpers::FormHelper.send(:include, GollumEditor::FormHelper)