Not sure if this errored for you also. `gem 'twitter'` is when you add it to a gemfile in a rails app. If its a basic ruby app, you only need to use the 'require' to incorporate it.