title: Rails 3 Carrierwave-Fog-S3 error: Expected(200) <=> Actual(404 Not Found)
body: <p>I'm using Carrerwave 0.5.3 and getting a 404 error on my call to Picture.save in the Create method of my picture controller.  Per the instructions in lib/carrierwave/storage/s3.rb I have the following in my initialization file (config/initializers/carrierwave_fog.rb):</p>
  
  <pre><code>CarrierWave.configure do |config|
       config.s3_access_key_id = "xxxxx"
       config.s3_secret_access_key = "xxxxx"
       config.s3_bucket = "mybucket"  #already created in my S3 account
  end
  </code></pre>
  
  <p>In photo_uploader.rb I have:</p>
  
  <pre><code>class PhotoUploader &lt; CarrierWave::Uploader::Base
    include CarrierWave::RMagick
    storage :s3
    def store_dir
      "uploads"  # already created in my s3 account
    end
    def cache_dir
      "uploads/cache"  #already created in my s3 account
    end
  end
  </code></pre>
  
  <p>The exact error:</p>
  
  <pre><code>Excon::Errors::NotFound in PicturesController#create
  Expected(200) &lt;=&gt; Actual(404 Not Found)
    request =&gt; {:expects=&gt;200}
    response =&gt; #&lt;Excon::Response:0x00000104a72448 @body="", @headers={}, @status=404&gt;
  </code></pre>
  
  <p>I found a slightly similar question here  <a href="https://stackoverflow.com/questions/5481523/carrierwave-and-s3-with-heroku-error-undefined-method-fog-credentials">Carrierwave and s3 with heroku error undefined method `fog_credentials=&#39;</a> .  But setting things up the way I have it now apparently worked in that case.  Unfortunately it didn't for me.  </p>
  
  <p>I've put a picture in my bucket and set the permissions to public and can access the picture via a browser.  So things on the AWS S3 side seem to be working.</p>
  
  <p>Not sure where to go next.  Any ideas?</p>