classImageUploader < CarrierWave::Uploader::Base
include CarrierWave::RMagick
storage :filedefstore_dir"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"end
version :thumbdo
process :resize_to_limit => [200, 200]
endend
galleries/show.html.erb
<%= image_tag painting.image_url(:thumb) if painting.image? %>