module FormtasticBootstrap::Inputs::Base::Choices
Public Instance Methods
choices_wrapping_html_options()
click to toggle source
Calls superclass method
# File lib/formtastic-bootstrap/inputs/base/choices.rb, line 12 def choices_wrapping_html_options new_class = [super[:class], "controls"].compact.join(" ") super.merge(:class => new_class) end
control_label_html_options()
click to toggle source
Calls superclass method
# File lib/formtastic-bootstrap/inputs/base/choices.rb, line 31 def control_label_html_options super.merge(:for => nil) end
input_div_wrapping() { || ... }
click to toggle source
# File lib/formtastic-bootstrap/inputs/base/choices.rb, line 6 def input_div_wrapping(&block) template.content_tag(:div, choices_wrapping_html_options) do [yield, error_html(:block), hint_html(:block)].join("\n").html_safe end end
legend_html()
click to toggle source
This is actually a label in Bootstrap.
# File lib/formtastic-bootstrap/inputs/base/choices.rb, line 25 def legend_html template.content_tag(:label, control_label_html_options) do render_label? ? label_text : "".html_safe end end