title: Carrierwave mongoid minimagick
body: <p>I know a lot of questions have been asked but can not find an answer and how to fix my problem. I want to resize the image on the first upload, but it is not working. I can load the image properly without resizing it. 
  The problem is when I add process :resize_to_fit => [300, -1]</p>
  
  <p>I have a rails 4 app with the gem </p>
  
  <pre><code>gem 'carrierwave'
  gem 'carrierwave-mongoid', :require =&gt; 'carrierwave/mongoid'
  gem 'fog'
  gem 'mini_magick'
  gem 'mongoid', '~&gt; 4.0.0.beta1'
  </code></pre>
  
  <p>the image_uploader.rb</p>
  
  <pre><code>class ImageUploader &lt; CarrierWave::Uploader::Base
  
    include CarrierWave::MiniMagick
  
    # Choose what kind of storage to use for this uploader:
    storage :fog
  
    process :resize_to_fit =&gt; [300, -1]
  
    def store_dir
      "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
    end
  
    def extension_white_list
      %w(jpg jpeg gif png)
    end
  
  end
  </code></pre>