# File lib/formtastic.rb, line 1411 def legend_tag(method, options = {}) if options[:label] == false Formtastic::Util.html_safe("") else text = localized_string(method, options[:label], :label) || humanized_attribute_name(method) text += required_or_optional_string(options.delete(:required)) text = Formtastic::Util.html_safe(text) template.content_tag :legend, template.label_tag(nil, text, :for => nil), :class => :label end end