I'm running Ruby v1.8.7 and Rails v3.0.9.

I'm trying to use this twitter gem: <http://twitter.rubyforge.org/>, v1.7.0

The directions state you need to:

```

require 'rubygems'
require 'twitter'

```

However, I'm getting this error:

```

LoadError
no such file to load -- twitter

```

I read on SO that the 1.7.0 gem isn't compatible with Ruby 1.8.7, so I downgraded to 0.9 (the version the SO answer mentioned was compatible with 1.8.x) and that still didn't work. 

One thing that's weird is that if I fire up irb, and include rubygems first, I can include twitter with no problems.

I had to install the gem using sudo, but I don't think that should be the problem.

Any ideas how I can successfully include this twitter gem into my application? It looks super easy to use, once I can get over this hurdle.

Update: I tried adding

```

gem 'twitter'

```

to my Gemfile and ran bundle install, and now I get a Phusion Passenger error:

```

Ruby (Rack) application could not be started
Could not find twitter-1.7.1 in any of the sources (Bundler::GemNotFound)

```