module GollumEditor
module FormHelper
def gollum_editor(object_name, method, options = {})
puts "gollum called"
controls = '
'
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)