app/views/active_admin/resource/_form_default.html.arb
# frozen_string_literal: true
options = {
url: resource.persisted? ? resource_path(resource) : collection_path,
as: active_admin_config.param_key
}
options.merge!(page_presenter.options)
active_admin_form_for(resource, options) do |f|
f.semantic_errors # show errors on :base by default
f.inputs
f.actions
end