Tweetpaths Update

I'm happy to be able to announce that the Tweetpaths website will live on after all. Black Hills Information Security have kindly offered to take over Tweetpaths and to handle the maintenance and hosting.

The code can still be found at for those who are interested, but the Tweetpaths website will continue to run at

Error Handling in the Login Form

This post is a follow on from the Creating a login form with Ruby on Rails post. At the end of that post we had a login form to enter your Basecamp username and password, but it didn't cope very well if you typed in the wrong username or password. In this post we're going to handle this by displaying a message on the form saying the username or password is incorrect, and giving the user another go at logging on.

Unfortunately this will be my last post on Basecamp/Rails integration, as I'm no longer working on this project.

Read More

ActiveResource error message when using Basecamp Gem

Update: This problem has been resolved in version 0.0.4 of the basecamp gem. Using the Basecamp gem in Rails 3, I got the following error message when running rails server or rails console:

The 'activeresource' library could not be loaded. If you have RubyGems installed you can install ActiveResource by doing "gem install activeresource".

This has been logged as an issue on the basecamp-wrapper github page (see but hasn't been fixed in the gem yet.

This is how I got it to work by creating a local copy of the gem in my applications vendor/gems directory and modifying the local copy to remove the error.

Read More

Creating a login form with Ruby on Rails

This is a follow on from my last post, Writing a Ruby on Rails application to fetch data from Basecamp. At the end of that post we had an app which fetched a project list from Basecamp, but we had hard coded our Basecamp API token into the application. In this post we are going to create a login form. The form will prompt for a Basecamp username and password and use them to fetch and store the API token which can then used in all further Basecamp API calls in that session.

Before we start however, I'll talk a bit about what I mean by a "session" in a web based application.

Read More

Writing a Ruby on Rails application to fetch data from Basecamp


This is the first in what I hope will be a series of posts following my attempts to build a little Ruby on Rails web app that will grab data from Basecamp using the Basecamp API. The aim is to develop an app that will produce a "what I have done this week" report using the data from the Basecamp To-Do lists.

The app will be based on Rails 2.3.5 and Ruby 1.8.7. I realise that these aren't the latest versions, but they are the standard versions available on the two platforms I use (Mac OS 10.6.5 and Ubuntu 10.10). Later on I might look at upgrading to Rails 3.

Read More