gluttonberg/lib/gluttonberg/helpers/admin.rb
def block(label = nil, opts = {}, &blk)
        (opts[:class] ||= "") << " fieldset"
        opts[:class].strip!
        if label
          fieldset({:legend => label}) do
            tag(:div, opts, &blk)
          end
        else
          tag(:div, opts, &blk)
        end
      end
# If it's passed a label this method will return a fieldset, otherwise it
# will just return the contents wrapped in a block.
If it's passed a label this method will return a fieldset, otherwise it
will just return the contents wrapped in a block.
If it ' s passed a label this method will return a fieldset otherwise it will just return the contents wrapped in a block .
def block(label = nil, opts = {}, &blk)
        (opts[:class] ||= "") << " fieldset"
        opts[:class].strip!
        if label
          fieldset({:legend => label}) do
            tag(:div, opts, &blk)
          end
        else
          tag(:div, opts, &blk)
        end
      end
def block ( label = nil , opts = { } , & blk ) ( opts [ :class ] ||= "" ) << " fieldset" opts [ :class ] . strip! if label fieldset ( { :legend => label } ) do tag ( :div , opts , & blk ) end else tag ( :div , opts , & blk ) end end
If it's passed a label this method will return a fieldset, otherwise it
will just return the contents wrapped in a block.
If it ' s passed a label this method will return a fieldset otherwise it will just return the contents wrapped in a block .
label
opts
blk