Module: Pageflow::Admin::FormHelper

Defined in:
app/helpers/pageflow/admin/form_helper.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Instance Method Details

#admin_form_for(resource, options = {}) ⇒ Object

Using semantic_form_for directly causes Formtastic deprecation warnings regarding ‘input_class_finder` and `action_class_finder`. `active_admin_form_for` causes issues in `erb` templates (see github.com/activeadmin/activeadmin/issues/3916).



9
10
11
# File 'app/helpers/pageflow/admin/form_helper.rb', line 9

def admin_form_for(resource, options = {}, &)
  semantic_form_for(resource, options.merge(builder: ActiveAdmin::FormBuilder), &)
end