We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Add draper to the Gemfile.
Gemfile
# Gemfile gem 'draper'
Assuming a post and a post decorator
class Post < ActiveRecord::Base; end class PostDecorator < ApplicationDecorator decorates :post def image h.image_tag model.image_url end end
Then the following is possible
ActiveAdmin.register Post do decorate_with PostDecorator index do column(:title) column(:image) end show do attributes_table do row(:title) row(:image) end end end