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:
- unpack twitter4r in the vendor/plugins directory and create an init.rb file with one line
require 'twitter'. - 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. - 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
August 28th, 2008 at 2:49 pm
Thanks for posting about Twitter4R and solving a problem other users might have. I will be posting this post to the user group.
August 29th, 2008 at 8:35 am
Thanks Susan. Great gem that you have developed.