Module: MerbFormFields::ViewHelpers

Defined in:
lib/merb_form_fields/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#form_with_fields_for(name, attrs = {}, &blk) ⇒ Object



3
4
5
6
7
# File 'lib/merb_form_fields/view_helpers.rb', line 3

def form_with_fields_for(name, attrs = {}, &blk)
  with_form_context(name, MerbFormFields::FormFieldBuilder) do
    current_form_context.form(attrs, &blk)
  end
end