Module: ActionView::Helpers::FormHelper

Defined in:
lib/adva/extensible_forms.rb

Instance Method Summary collapse

Instance Method Details

#field_set(object_name, name, content = nil, options = {}, &block) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/adva/extensible_forms.rb', line 8

def field_set(object_name, name, content = nil, options = {}, &block)
  options.delete(:object)
  options[:name] ||= name
  options[:id] ||= name
  content ||= self.capture(&block) if block_given?
  ("fieldset", raw(content), options).html_safe
end