Created by: gracewashere
Extract the following methods from all adapter classes:
- #render_show
- #render_index
- #render_form_label
- #render_form_field
And add a _show
, _index
, and _form
partial for each adapter.
The partials live in app/views/adapters/(adapter_name)
.
Inspired by https://robots.thoughtbot.com/rendering-collections-in-rails and discussion on https://github.com/thoughtbot/administrate-demo/pull/16