module FormtasticBootstrap::Actions::Base

Public Instance Methods

default_button_html() click to toggle source

:wrapper_html member :class is prefixed with btn :button_html member :class is all encompassing

# File lib/formtastic-bootstrap/actions/base.rb, line 17
def default_button_html
  {
    :accesskey => accesskey,
    :class => wrapper_class.strip,
    :id => wrapper_id
   }
end
default_wrapper_classes() click to toggle source

Default button class

# File lib/formtastic-bootstrap/actions/base.rb, line 11
def default_wrapper_classes
  ["btn"]
end
wrapper(&block) click to toggle source

Bootstrap doesn't have wrappers.

# File lib/formtastic-bootstrap/actions/base.rb, line 6
def wrapper(&block)
  template.capture(&block)
end