title: Requiring gem in Rails 3 Controller failing with "Constant Missing"
body: <p>I've seen this asked a few times in other threads, but none of the answers seem to apply.</p>
  
  <p><strong>Environment:</strong> 
  Rails 3
  amazon/ecs gem from jugend.  The lone file is here:
  <a href="http://github.com/jugend/amazon-ecs/blob/master/lib/amazon/ecs.rb" rel="nofollow noreferrer">http://github.com/jugend/amazon-ecs/blob/master/lib/amazon/ecs.rb</a></p>
  
  <p>my gemfile has: 
  gem 'amazon-ecs', :git => 'git://github.com/jugend/amazon-ecs.git'</p>
  
  <p>Everything works in irb.  I can run: 
  bundle console
  require 'amazon/ecs' and then go to town</p>
  
  <p>when I try to use it from the controller though, like so:
  require 'amazon/ecs'</p>
  
  <pre><code>require 'amazon/ecs'
  
  class SearchController &lt; ApplicationController
    def index    
    end
  
    def results
      Amazon::Ecs.configure do |options|
          options[:aWS_access_key_id] = '[key]'
          options[:aWS_secret_key] = '[secret]'
      end
  
      res = Amazon::Ecs.item_search(params[:search], {:response_group =&gt; 'Medium', :search_index =&gt; 'All'})
    end
  end
  </code></pre>
  
  <p>I get: uninitialized constant SearchController::Amazon at line 8, where I first try to use Amazon.</p>
  
  <p>the ecs.rb has a module Amazon containing a class Ecs.  I'm not sure why this is working in erb, and not in rails.</p>
  
  <p>I'm still kinda new to Rails, so please answer using small words.  :-/</p>