title: Paperclip, s3 fail to upload but didn't show any errors
body: <p>I've been searching for solutions in similar topics of this but I can't get it to work somehow.
  This is my application log</p>
  
  <pre><code>Command :: identify -format %wx%h '/tmp/0120121215-31657-19vihny.jpg[0]'
  Command :: convert '/tmp/0120121215-31657-19vihny.jpg[0]' -auto-orient -resize "32x32!" -     background white -flatten +matte '/tmp/0120121215-31657-19vihny20121215-31657-58mm3a.png'
  Command :: identify -format %wx%h '/tmp/0120121215-31657-19vihny.jpg[0]'
  Command :: convert '/tmp/0120121215-31657-19vihny.jpg[0]' -auto-orient -resize "320x320!" -background white -flatten +matte '/tmp/0120121215-31657-19vihny20121215-31657-1n3fgl2.png'
  
  [paperclip] Saving attachments.
  [paperclip] saving images/:User/50cc0cfb0feea807f6000004/original.jpg
  [paperclip] saving images/:User/50cc0cfb0feea807f6000004/small.png
  [paperclip] saving images/:User/50cc0cfb0feea807f6000004/medium.png
  
  Started POST "/photos" for 127.0.0.1 at 2012-12-15 12:39:07 +0700
  Processing by PhotosController#create as HTML 
  Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"SSjceuOzRNQfJyUCki86mNBfuHsK0bh5qQmX4pBi7uk=", "photo"=&gt;{"image"=&gt;#&lt;ActionDispatch::Http::UploadedFile:0xb27e0164 @original_filename="01.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"photo[image]\"; filename=\"01.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#&lt;File:/tmp/RackMultipart20121215-31657-9oqjbm&gt;&gt;, "description"=&gt;"This is decscription"}, "commit"=&gt;"Create Photo"}
  
  MOPED: 127.0.0.1:27017 COMMAND      database=admin command={:ismaster=&gt;1} (0.7489ms)
  MOPED: 127.0.0.1:27017 INSERT       database=image12345_development collection=photos documents=[{"_id"=&gt;"50cc0cfb0feea807f6000004", "image_file_name"=&gt;"01.jpg", "image_content_type"=&gt;"image/jpeg", "image_file_size"=&gt;368812, "image_updated_at"=&gt;2012-12-15 05:39:07 UTC, "description"=&gt;"This is decscription"}] flags=[] (0.2658ms)
  
  [AWS S3 200 8.971826 0 retries] put_object(:acl=&gt;:public_read,:bucket_name=&gt;"image12345",:content_length=&gt;368812,:content_type=&gt;"image/jpeg",:data=&gt;Paperclip::UploadedFileAdapter: 01.jpg,:key=&gt;"images/:User/50cc0cfb0feea807f6000004/original.jpg")  
  
  [AWS S3 200 0.214209 0 retries] put_object(:acl=&gt;:public_read,:bucket_name=&gt;"image12345",:content_length=&gt;2763,:content_type=&gt;"image/png",:data=&gt;Paperclip::FileAdapter: 0120121215-31657-19vihny20121215-31657-58mm3a.png,:key=&gt;"images/:User/50cc0cfb0feea807f6000004/small.png")  
  
  [AWS S3 200 3.498196 0 retries] put_object(:acl=&gt;:public_read,:bucket_name=&gt;"image12345",:content_length=&gt;142791,:content_type=&gt;"image/png",:data=&gt;Paperclip::FileAdapter: 0120121215-31657-19vihny20121215-31657-1n3fgl2.png,:key=&gt;"images/:User/50cc0cfb0feea807f6000004/medium.png")  
  
  Redirected to http://localhost:3000/photos/50cc0cfb0feea807f6000004
  Completed 302 Found in 12992ms
  </code></pre>
  
  <p>I use <strong>devise</strong> for user </p>
  
  <p>In my gem file There's</p>
  
  <pre><code>gem "mongoid-paperclip", :require =&gt; "mongoid_paperclip"
  gem 'paperclip'
  gem "aws-sdk"
  </code></pre>
  
  <p>In my models/photo.rb</p>
  
  <pre><code>has_mongoid_attached_file :image,
  :path           =&gt; ':attachment/:User/:id/:style.:extension',
  :storage        =&gt; :s3,
  :s3_credentials =&gt; File.join(Rails.root, 'config', 's3.yml'), #s3.yml contain credentials
  :styles =&gt; {
  :small =&gt; ['32x32!', :png],
  :medium   =&gt; ['320x320!',    :png, :jpg],
  
  },
  :convert_options =&gt; { :all =&gt; '-background white -flatten +matte' }  
  attr_accessible :image, :description
  </code></pre>
  
  <p>in my form</p>
  
  <pre><code>&lt;%= form_for(@photo , :html =&gt; {:multipart =&gt; true} ) do |f| %&gt;
  &lt;div class="field"&gt;
      &lt;%= f.label :image %&gt;&lt;br /&gt;
      &lt;%= f.file_field :image %&gt;
  &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I've already tried many solutions like add form_helper :multipart and in my previous applications, this model and gem worked finely and I'm sure that the credential is correct.  it's just told me that it's a success update but no image is uploaded.
  Where can I look for an errors on this issue? or any tools I can use ? I'm really stuck on this and want to get through it, not creating new app and wish for luck.</p>