title: RoR - uninitialized constant Twitter::Client
body: <p><strong>twitter_helper.rb</strong>  </p>
  
  <pre><code>module TwitterHelper
  
    require 'rubygems'
    require 'twitter'
    require 'net/http'
    require 'uri'
  
  
    def get_tweets (twitter_user)
      begin
          @tweets = Array.new
          @twitter = Twitter::Client.new
  
          Twitter.user_timeline(twitter_user) do |tweet|
              @tweets.push(tweet)
          end
          @tweets
      rescue Exception =&gt; e
        puts e
        _("Errors: #{e.to_s}
          ")
      end
    end
  
  end
  </code></pre>
  
  <p>My gemfile includes</p>
  
  <pre><code>gem 'twitter'
  </code></pre>
  
  <p>And I've done</p>
  
  <pre><code>bundle install
  </code></pre>
  
  <p>But every time I call </p>
  
  <pre><code>tweets = get_tweets
  </code></pre>
  
  <p>From my view I get the exception (uninitialized constant Twitter::Client). What am I missing?</p>