title: Error "uninitialized constant AWS (NameError)"
body: <p>It is saying AWS is uninitialized. I am usign the aws-sdk-core gem.</p>
  
  <p>I tried using the aws-sdk gem instead, and the problem was still there.</p>
  
  <p>This is the initializers/aws.rb file:</p>
  
  <pre><code>AWS.config(:access_key_id =&gt; ENV['AWS_ACCESS_KEY_ID'],
                        :secret_access_key =&gt; ENV['AWS_SECRET_ACCESS_KEY'])
  
  s3 = AWS::S3.new
  AVATAR_BUCKET = s3.buckets[ENV['AVATAR_BUCKET_NAME']]
  </code></pre>
  
  <p>When I try running the server or opening the console I get this error:</p>
  
  <blockquote>
    <p>/initializers/aws.rb:1:in `': uninitialized constant AWS (NameError)</p>
  </blockquote>