Method: Qadmin::Helper#fieldset
- Defined in:
- lib/qadmin/helper.rb
#fieldset(legend = nil, options = {}, &block) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/qadmin/helper.rb', line 4 def fieldset(legend = nil, = {}, &block) concat(content_tag(:fieldset, ) do html = '' html << content_tag(:legend, legend) if legend html << capture(&block) html end) end |