Module: ActiveAdmin::ViewHelpers::FormHelper

Included in:
ActiveAdmin::ViewHelpers
Defined in:
lib/active_admin/view_helpers/form_helper.rb

Instance Method Summary collapse

Instance Method Details

#active_admin_form_for(resource, options = {}, &block) ⇒ Object



5
6
7
8
# File 'lib/active_admin/view_helpers/form_helper.rb', line 5

def active_admin_form_for(resource, options = {}, &block)
  options[:builder] ||= ActiveAdmin::FormBuilder
  semantic_form_for resource, options, &block
end