module FormtasticBootstrap::Helpers::FieldsetWrapper
Protected Instance Methods
field_set_legend(html_options)
click to toggle source
# File lib/formtastic-bootstrap/helpers/fieldset_wrapper.rb, line 33 def field_set_legend(html_options) legend = (html_options[:name] || '').to_s legend %= parent_child_index(html_options[:parent]) if html_options[:parent] legend = template.content_tag(:legend, Formtastic::Util.html_safe(legend)) unless legend.blank? legend end