Monthly Archives: July 2010

Selenium RC, Firefox 3, and Ubuntu

I’ve got a system setup which uses Firefox on an Ubuntu machine, with the Selenium RC server (remote control). I had a set of scripts which would run automatically every 15 minutes, which would prompt Firefox to open and go to the site and submit certain forms. This stopped working after I ran an update…

Undefined method ‘ref’ for ActiveSupport::Dependencies:Module

After upgrading to Snow Leopard, and trying to run ‘rake db:migrate’, I received this error once. This seems common to others which have upgraded, especially back when Snow Leopard was released in August of 2009: rake aborted! uninitialized constant MysqlCompat::MysqlRes (See full trace by running task with –trace) I’ve tried to troubleshoot by reinstalling the…

Setting up Deployment for Rails using Capistrano, Apache with Passenger and Git

I don’t have time right now to learn how to setup Capistrano. I just want a recipe that works and does the job. Here are my notes. 1) First install the Capistrano gem sudo gem install capistrano 2) Next you need to go into the directory of your Ruby on Rails application and capify it:…

Rake Tasks

If you’re wanting to know which Rake tasks are available for you to use from the command line, simply use the ‘rake -T’ command: macbook:railsproject jason$ rake -T (in /Users/jason/railsproject) rake db:abort_if_pending_migrations # Raises an error if there are pending migrations rake db:charset # Retrieves the charset for the current environment’s database rake db:collation #…

MySQL Gem Installation on Mac 10.5.8 – 64 bit ??

I’m setting up a new Ruby on Rails application, and tried to run the first migration for the creation of the new database. This failed because I didn’t have the MySQL gem installed. I’m using a 64 bit processor (Intel Core 2 Duo) so I installed the 64 bit MySQL for 10.5.8 (Leopard, I haven’t…