【发布时间】:2013-10-02 11:03:54
【问题描述】:
如何在后台进程完成前查看临时图像?我使用carrierwave_background gem 和store_in_background。
photo.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
【问题讨论】:
标签: ruby-on-rails carrierwave sidekiq cloudinary