Ruby (on Rails)

I've been using Ruby on Rails for a few years, in my spare time, and hope to keep working with it whenever the opportunity arises. A couple of college friends and I created hospitalpages.ie which is was developed using Ruby on Rails, Git and Capistrano for deployment. I also hope to dabble more in pure Ruby scripting, to date I've used it for automating data insertion with MySQL and some file parsing.

BDD - Rails 3, AutoTest, RSpec and Growl

Posted by Tom Eustace on April 30, 2011|Comments|Read full article

RSpec and AutoTest with Growl notifications set up for Ubuntu 10.10. Here's what worked for me. This is a rapid post to help me when I need to do this in the future.

Get value from checkbox in rails (2.0.4)

Posted by Tom Eustace on February 25, 2011|Comments|Read full article
With below checkbox, access the value in controller with something like :params[checkbox_name], e.g. if (:params[checkbox_name] == 'selected') # do something

FTP with Ruby

Posted by Tom Eustace on December 22, 2010|Comments|Read full article
FTP with Ruby

require 'mysql' Results in Load Error

Posted by Tom Eustace on December 19, 2009|Comments|Read full article
Had this problem recently when writing a Ruby script. Though I had mysql gem installed I got a load error in the script when I tried to require "mysql"...

Rake fun and killing dispatch.fcgi

Posted by Tom Eustace on December 19, 2009|Comments|Read full article
A few rake commands I use a lot. Of course "rake -h" is your best friend also...