如何在后台进程完成之前查看临时图像?我将carrierwave_background
宝石与store_in_background
.
照片.html.erb
<%= image_tag photo.image_tmp %>
image_uploader.rb
# encoding: utf-8
class ImageUploader < CarrierWave::Uploader::Base
include Cloudinary::CarrierWave
include ::CarrierWave::Backgrounder::Delay
version :thumb do
process :convert => 'jpg'
process :resize_to_fit => [250, 250]
end
end