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_htmlObject



9
10
11
12
13
14
# 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) ⇒ Object



5
6
7
# File 'lib/formtastic-bootstrap/actions/base.rb', line 5

def wrapper(&block)
	template.capture(&block)
end