Module: Bootsy::FormBuilder

Defined in:
lib/bootsy/form_builder.rb

Overview

Public: Convenience module to include Bootsy in ‘ActionView::Helpers::FormBuilder`.

Instance Method Summary collapse

Instance Method Details

#bootsy_area(method, options = {}) ⇒ Object

Public: Return a textarea element with proper attributes to be loaded as a WYSIWYG editor.

method - The Symbol attribute name on the object assigned to the

form builder that will tailor the editor.

options - The Hash of options used to enable/disable features of

the editor (default: {}).
Available options are:


15
16
17
# File 'lib/bootsy/form_builder.rb', line 15

def bootsy_area(method, options = {})
  @template.bootsy_area(@object_name, method, objectify_options(options))
end