Module: Pageflow::Admin::FormHelper
- Defined in:
- app/helpers/pageflow/admin/form_helper.rb
Instance Method Summary collapse
-
#admin_form_for(resource, options = {}, &block) ⇒ Object
Using semantic_form_for directly causes Formtastic deprecation warnings regarding ‘input_class_finder` and `action_class_finder`.
Instance Method Details
#admin_form_for(resource, options = {}, &block) ⇒ 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, = {}, &block) semantic_form_for(resource, .merge(builder: ActiveAdmin::FormBuilder), &block) end |