Module: BootstrapPagedown::FormBuilder

Defined in:
lib/bootstrap_pagedown/form_builder.rb

Instance Method Summary collapse

Instance Method Details

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



3
4
5
6
7
8
# File 'lib/bootstrap_pagedown/form_builder.rb', line 3

def pagedown_editor( method, options={})
  @template.( :div, class: 'wmd-panel' ) do
    @template.( :div, nil, id: 'wmd-button-bar' ) +
    @template.text_area( @object_name, method, objectify_options( options ).merge( id: 'wmd-input', class: 'wmd-input' ) )
  end
end