v1.7.0
The focus of v1.7 has been to:
- use Rails layouts, views and partials,
- to deprecate controller meta-programming
- to make resource and page DSL optional.
In detail:
- Uses a faster and more memory efficient fork of
Arbre
calledArbo
. Elements are rendered usingrender_in
instead ofto_s
.render_in
may be used with either anArbo::Context
or anActionView::Context
. - Uses Rails layout
views/layouts/active_admin.html.erb
andviews/active_admin/_head.html.erb
.Views::Pages::Base
andViews::Pages::Layout
have been removed and are no longer available for subclassing or customization. - Uses the following Rails partials instead of Arbre view components. The replaced view components have been removed and are no longer available for subclassing or customization:
views/active_admin/base/_header.html.arb
replacesViews::Header
views/active_admin/base/_title_bar.html.arb
replacesViews::TitleBar
views/active_admin/base/_action_items.html.arb
replacesViews::ActionItems
views/active_admin/base/_sidebar.html.arb
replacesViews::Sidebar
views/active_admin/base/_footer.html.arb
replacesViews::Footer
- Reduced configuration DSL and controller meta-programming:
- Using
controller do ... end
is deprecated in favor of defining and adding to a subclass ofPageController
orResourceController
. actions
andbefore_|after_
callbacks should be defined directly in the controller.- Passing blocks to
member_action
,collection_action
orpage_action
is deprecated in favor of adding methods to the controller. - Passing blocks to
batch_action
is deprecated in favor of adding protected methods to the controller. permit_params
is deprecated in favor of addingpermitted_attr_names
to the controller.- Passing a block to the show page presenter is deprecated in favor of defining a partial,
_show.html.arb
.Views::Pages::Show
has been removed and is no longer available for subclassing. - Passing a block to the form page presenter is deprecated in favor of defining a partial,
_form.html.arb
.Views::Pages::Form
has been removed and is no longer available for subclassing. - Passing a block to the index page presenter for
:table
is deprecated in favor of defining a partial_index_as_table.html.arb
.Views::Pages::Index
has been removed and is no longer available for subclassing. content do ... end
is deprecated in favor of defining a partial,_content.html.arb
.- Setting page presenter
:title
is deprecated in favor of settingcontent_for(:page_title)
in a partial instead. - Using
action_item
is deprecated in favor of defining a partial,_action_items.html.arb
and populating with links. - Using
filter
is deprecated in favor of defining a partial,_filters_form.html.erb
and passing filter settings intoactive_admin_filters_form_for
- Using