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, = {}, &block) .delete(:object) [:name] ||= name [:id] ||= name content ||= self.capture(&block) if block_given? content_tag("fieldset", raw(content), ).html_safe end |