module GollumEditor
module FormHelper
def gollum_editor(object_name, method, options = {})
options[:id] = 'gollum-editor-body'
controls = '
'
input = text_area(object_name, method, options)
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)