Capture customer uploaded image in admin dashboard?

74 views Asked by At

In my application, I am using activeadmin and paperclip(for uploading images). I have below code in admin/customer.rb

ActiveAdmin.register Customer do
  index do
    column :first_name
    column :email
    column :phone
    column :address
    column :created_at
    column :avatar
  end
end
1

There are 1 answers

0
Timo Schilling On
ActiveAdmin.register Customer do
  index do
    column :first_name
    column :email
    column :phone
    column :address
    column :created_at
    column :avatar do |customer|
      image_tag(customer.avatar.url(:thumb))
    end
  end
end