-3
在我的應用程序中,我使用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
顯示你有什麼到目前爲止已經試過......? –
我沒有嘗試任何東西,我對軌道上的紅寶石非常陌生。只是我添加頭像列到customer.rb –
在這個Srack溢出問題完整的步驟提到參考這個http://stackoverflow.com/questions/7078107/file-upload-with-activeadmin-rails-using-paperclip –