0
我有一個rails4應用程序,配置文件圖像與carrierwave上傳和S3服務。rails4 carrierwave + S3添加新的圖像版本
我曾經有一個圖像版本(base_thumb
)用於調整大小。現在我試圖添加user_thumb
,但是如果將代碼從profile.avatar.url(:base_thumb)
更改爲profile.avatar.url(:user_thumb)
,則圖像不會顯示給之前創建配置文件的用戶,因爲該圖像版本不在S3上。
我該如何解決這個問題?
version :base_thumb do
process :resize_to_fit => [85, 85]
end
version :user_thumb do
process :resize_to_fit => [40, 40]
end
大聲笑,我不明白我怎麼會在文檔錯過本作。 –