Module: SpeedoFormstrap::Actions::Base

Included in:
ButtonAction, InputAction, LinkAction
Defined in:
lib/speedo-formstrap/actions/base.rb

Instance Method Summary collapse

Instance Method Details

#button_htmlObject



9
10
11
12
13
14
# File 'lib/speedo-formstrap/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/speedo-formstrap/actions/base.rb', line 5

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