title: How to fix s3/paperclip/rails template error missing :bucket option?
body: <p>I get an error saying "ActionView::Template::Error (missing required :bucket option)" when I try to use paperclip and s3 for my rails app in production.</p>
  
  <p>My production.rb has:</p>
  
  <pre><code>config.paperclip_defaults = {
    :storage =&gt; :s3,
    :s3_credentials =&gt; {
      :bucket =&gt; ENV['rockywolf'],
      :access_key_id =&gt; ENV['dsfa'],
      :secret_access_key =&gt; ENV['fdsa']
    }
  }
  </code></pre>
  
  <p>When I run heroku config, I have:</p>
  
  <pre><code>AWS_ACCESS_KEY_ID:          dsfa
  AWS_SECRET_ACCESS_KEY:      fdsa
  S3_BUCKET_NAME:             rockywolf
  bucket:                     rockywolf
  </code></pre>
  
  <p>Any advice on how to fix this?</p>
  
  <pre><code>2013-12-12T14:44:59.342109+00:00 app[web.1]: ActionView::Template::Error (missing required :bucket option):
  2013-12-12T14:44:59.342109+00:00 app[web.1]:     38:         &lt;!-- End image --&gt;
  2013-12-12T14:44:59.342109+00:00 app[web.1]:     33:         &lt;!-- Image --&gt;
  2013-12-12T14:44:59.342109+00:00 app[web.1]:     34:         &lt;div class="col-md-3"&gt;
  2013-12-12T14:44:59.342109+00:00 app[web.1]:     35:           &lt;%= image_tag product.avatar.url(:medium), :class =&gt; "featurette-image img-responsive", :alt =&gt; "#{product.name}" %&gt;
  2013-12-12T14:44:59.342109+00:00 app[web.1]:     36: 
  2013-12-12T14:44:59.342109+00:00 app[web.1]:     37:         &lt;/div&gt;
  2013-12-12T14:44:59.342296+00:00 app[web.1]:   app/views/products/latest.html.erb:6:in `_app_views_products_latest_html_erb___978491162299015895_69950414232980'
  2013-12-12T14:44:59.342296+00:00 app[web.1]: 
  2013-12-12T14:44:59.342109+00:00 app[web.1]: 
  2013-12-12T14:44:59.342296+00:00 app[web.1]: 
  2013-12-12T14:44:59.342109+00:00 app[web.1]:   app/views/products/latest.html.erb:35:in `block in _app_views_products_latest_html_erb___978491162299015895_69950414232980'
  Sharats-MacBook-Pro:rockywolf sharatakasapu$ 
  </code></pre>