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, options = {}, &block)
  concat((:fieldset, options) do
    html = ''
    html << (:legend, legend) if legend
    html << capture(&block)
    html
  end)
end