Method: JqueryUiForm::Helpers::WrapperHelper#fieldset
- Defined in:
- lib/jquery_ui_form/helpers/wrapper_helper.rb
#fieldset(*args, &block) ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/jquery_ui_form/helpers/wrapper_helper.rb', line 13 def fieldset(*args, &block) legend = "" legend = args.shift unless args.first.is_a?(Hash) = args. [:class] = "#{html_options[:class]} ui-fieldset" template.content_tag(:fieldset,) do template.concat(template.content_tag(:legend, legend, [:html_legend])) unless legend.blank? yield end end |