module FormtasticBootstrap::Actions::Base

Public Instance Methods

button_html() click to toggle source
Calls superclass method
# File lib/formtastic-bootstrap/actions/base.rb, line 9
def button_html
        new_class = [super[:class], wrapper_html_options[:class], "btn"]
        new_class << "btn-primary" if method == :submit
        new_class = new_class.compact.join(" ")
        wrapper_html_options.merge(super).merge(:class => new_class)
end
wrapper(&block) click to toggle source
# File lib/formtastic-bootstrap/actions/base.rb, line 5
def wrapper(&block)
        template.capture(&block)
end