Module: FormtasticBootstrap::Actions::Base
- Included in:
- ButtonAction, InputAction, LinkAction
- Defined in:
- lib/formtastic-bootstrap/actions/base.rb
Instance Method Summary collapse
- #default_button_html ⇒ Object
-
#wrapper(&block) ⇒ Object
Bootstrap doesn’t have wrappers.
Instance Method Details
#default_button_html ⇒ Object
13 14 15 16 17 18 |
# File 'lib/formtastic-bootstrap/actions/base.rb', line 13 def { :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 |