title: Twitter gem not working from controller in Rails
body: <p>I've been using the Twitter gem in my latest Rails app, and so far have had no problems. I've registered the app, have set the API tokens in <code>config/initializers/twitter.rb</code>, and have tested that it works in a custom rake test that requires the gem. The problem, however, is that when I try to send a tweet form a controller, nothing happens. My initializer looks like so:</p>
  
  <pre><code>require 'twitter'
  
  Twitter.configure do |config|
    config.consumer_key = '###'
    config.consumer_secret = '###'
    config.oauth_token = '###'
    config.oauth_token_secret = '###'
  end
  </code></pre>
  
  <p>The <code>###</code> are filled in correctly in my app, obviously. In my rake file, I require the gem at the top of the file, and am then able to send a test tweet with <code>Twitter.update(tweet)</code> however, the same syntax does not work from my controllers.</p>
  
  <p>What am I doing wrong here? Do I need to re-initialize the gem from the controller?</p>