2
我試圖用附件發送郵件,使用CarrierWave。 在Mailboxer寶石,我發現上傳安裝here. 它使用AttachmentUploader
爲外地:attachment
郵箱附件通過CarrierWave
在基本功能一切工作良好。附加文件存儲在public/uploads文件夾中。
但我需要添加自定義功能AttachmentUploader(例如,更改存儲附件等路徑)。
我試圖在app/uploaders
中創建自己的attachment_uploader.rb
,但它不起作用。