Ruby Twitter gem

Posted by jramirez on Stack Overflow See other posts from Stack Overflow or by jramirez
Published on 2011-01-11T17:22:45Z Indexed on 2011/01/11 17:53 UTC
Read the original article Hit count: 261

Filed under:
|
|
|

Hi guys,

I am having trouble working with the Twitter gem. I am using ruby 1.8.7

After installing when I try to run a simple script I get this error

ruby twitter.rb ./twitter.rb:5: uninitialized constant Twitter (NameError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:inrequire' from twitter.rb:2

I running this on a Ubuntu box. I checked with gem -list and I see the Twitter (1.1.0) is listed there.

this is the code I am trying to run

require "rubygems"
require 'twitter'


puts Twitter.user_timeline("test").first.text 

Any ideas ?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about twitter