Module: FormtasticBootstrap::Actions::Base

Included in:
ButtonAction, InputAction, LinkAction
Defined in:
lib/formtastic-bootstrap/actions/base.rb

Instance Method Summary collapse

Instance Method Details

#default_button_htmlObject



13
14
15
16
17
18
# File 'lib/formtastic-bootstrap/actions/base.rb', line 13

def default_button_html
  { 
    :accesskey => accesskey,
    :class => "btn"
   }
end

#wrapper(&block) ⇒ Object

Bootstrap doesn’t have wrappers.



6
7
8
9
10
11
# File 'lib/formtastic-bootstrap/actions/base.rb', line 6

def wrapper(&block)
  # TODO Detect if user passed wrapper_html_options and issue
  #      a warning that they're ignored. (See the original in
  #      Formtastic.)
  template.capture(&block)
end