title: Rails Paperclip S3 - missing required :bucket option
body: <p>I'm trying to use Amazon S3 for Paperclip attachments.  First, I'm trying to get it to work in development environment on my iMac.  </p>
  
  <p>I have created the Amazon buckets = ndeavor-dev and ndeavor-pro.  In the code below, I have substituted the bucket name and keys.  I have the gem's <code>paperclip</code> and <code>aws-sdk</code>.</p>
  
  <p>The error I get is:</p>
  
  <pre><code>ArgumentError at /attachments
  missing required :bucket option
  </code></pre>
  
  <p>I have tried this in my config/environments/development.rb:</p>
  
  <pre><code>  config.paperclip_defaults = {
      :storage =&gt; :s3,
      :s3_protocol =&gt; 'http',
      :bucket =&gt; ENV['AWS_BUCKET'],
      :s3_credentials =&gt; {
        :access_key_id =&gt; ENV['AWS_ACCESS_KEY_ID'],
        :secret_access_key =&gt; ENV['AWS_SECRET_ACCESS_KEY']
      }
    }
  </code></pre>
  
  <p>And I tried this (moving the :bucket):</p>
  
  <pre><code>  config.paperclip_defaults = {
      :storage =&gt; :s3,
      :s3_protocol =&gt; 'http',
      :s3_credentials =&gt; {
        :bucket =&gt; ENV['AWS_BUCKET'],
        :access_key_id =&gt; ENV['AWS_ACCESS_KEY_ID'],
        :secret_access_key =&gt; ENV['AWS_SECRET_ACCESS_KEY']
      }
    }
  </code></pre>
  
  <p>Thanks for the help!</p>