Module: FormtasticBootstrap::Actions::Base
- Included in:
- ButtonAction, InputAction, LinkAction
- Defined in:
- lib/formtastic-bootstrap/actions/base.rb
Instance Method Summary collapse
Instance Method Details
#button_html ⇒ Object
9 10 11 12 13 14 |
# File 'lib/formtastic-bootstrap/actions/base.rb', line 9 def new_class = [super[:class], [:class], "btn"] new_class << "btn-primary" if method == :submit new_class = new_class.compact.join(" ") .merge(super).merge(:class => new_class) end |
#wrapper(&block) ⇒ Object
5 6 7 |
# File 'lib/formtastic-bootstrap/actions/base.rb', line 5 def wrapper(&block) template.capture(&block) end |