In this tutorial I cover how to set up a basic Ruby on Rails 2.2.2 application and how to connect it to the Twitter API. Then I demonstrate receiving and sending Tweets, i.e. text messages through Twitter. I’ve also shared the code in Google Code.
Download the code for this tutorial here: whooz-twittter-integration.zip (LGPL 3.0)
This code requires Rails 2 – if you have OS X 10.5, it ships with 1.2; you can upgrade with the commands
sudo gem update --system and
sudo gem install rails