Sha256: c36ad5ce48db43f926a67120ce7673517ea870ff1bad0851794b7991281c3483

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeadmin-rails-1.7.1 app/views/active_admin/resource/_form.html.arb
activeadmin-rails-1.7.0 app/views/active_admin/resource/_form.html.arb