div id: "main_content" do if page_presenter.block 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, &page_presenter.block else render page_presenter.options[:partial] || 'form' end end