How to crop image on upload with Rails, Carrierwave and Minimagick?
问题 I have read: Undefined Method crop! Using Carrierwave with MiniMagick on rails 3.1.3 Carrierwave Cropping http://pastebin.com/ue4mVbC8 And so I tried: # encoding: utf-8 class ProjectPictureUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick storage :file def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end version :thumb do process :cropper # process :crop process resize_to_fit: [200, 200] end def cropper manipulate! do |img| # if model.crop