Aug 28

I am using Godaddy sharing account running ruby on rails. The problem of running ruby on rails on Godaddy shared hosting account is that Godaddy is still running rails 1.1.6 and there are not many gems that Godaddy has it installed. So if you want to use twitter4r, you can’t really do it because Godaddy will not install it for you. So what I did to get it running is to do the following:

  1. unpack twitter4r in the vendor/plugins directory and create an init.rb file with one line require 'twitter'.
  2. But that is not enough, you will have to also unpack json_pure gem in the vendor/plugins and create an init.rb with one line require 'json/pure'. The reason is that twitter4r depends on json but Godaddy doesn’t have json gem.
  3. Finally, you need to make sure you config twitter4r to use proxy server because twitter4r needs to communicate with twitter through https. here is the code to config that: Twitter::Client.configure do |conf| conf.proxy_host = 'proxy.shr.secureserver.net' conf.proxy_port = '3128' end

2 Responses

  1. S. Potter Says:

    Thanks for posting about Twitter4R and solving a problem other users might have. I will be posting this post to the user group.

  2. Leo Says:

    Thanks Susan. Great gem that you have developed.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.