在我的应用程序中,我使用activeadmin和paperclip(用于上传图片)。
我在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
答案 0 :(得分:0)
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