twitter gem not working in heroku ?

Posted by Luc on Stack Overflow See other posts from Stack Overflow or by Luc
Published on 2010-12-29T20:49:16Z Indexed on 2010/12/29 20:55 UTC
Read the original article Hit count: 300

Filed under:
|
|

Hello,

I'm working on a ruby app that updates a twitter account using 'twitter' gem. It's working fine locally (as usual :) ). But when I deploy it on heroku it seems the gem is not properly installed or something lile that as I got the following error:

NameError: uninitialized constant Twitter::OAuth

My code is very simple:

oauth = Twitter::OAuth.new(consumer_token, consumer_secret)
oauth.authorize_from_access(access_token, access_secret)
client = Twitter::Base.new(oauth)
client.update("Updating my status from twitter gem.  GREAT!")

Is there a problem with this particular gem ?

Thanks a lot for your help. Luc

© Stack Overflow or respective owner

Related posts about ruby

Related posts about twitter