我使用Carrierwave上傳文件,並使其工作。 我的問題是試圖更改上傳文件的名稱。 在生成uploader.rb有,我想我應該用 def filename
"something.jpg" if original_filename
basename = "what"+orginal_filename if original_filename, works
basen
我有carrierwave設置,它處理我的圖像很好。我在子文件夾中獲得了很好的調整大小的拇指版本。無論是從我的前端(HTML)和我的rails console。我使用MiniMagic 但在我的rspec拇指測試總是失敗。 describe 'processed images' do
before(:each) do
AttachmentUploader.enable_proc