Module: Adminterface::Extensions::Views::Pages::Form

Defined in:
lib/adminterface/extensions/views/pages/form.rb

Instance Method Summary collapse

Instance Method Details

#main_contentObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/adminterface/extensions/views/pages/form.rb', line 6

def main_content
  options = default_form_options.merge form_presenter.options

  if options[:partial]
    render options[:partial]
  elsif options[:multiple]
    instance_exec(&form_presenter.block)
  else
    active_admin_form_for resource, options, &form_presenter.block
  end
end