art.through(code)

...
Read entire article

On off switch image

acts_as_boolean is a Ruby on Rails plugin I wrote, that treats a column as a boolean, whether it’s a tinyint, integer, float, string, etc. No matter how true and false are stored in the database.

...
Read entire article

To write a command-line application in Ruby is very simple, the following two-line application converts everything in the standard input to upper case and then outputs it:

#!/usr/bin/env ruby 
puts STDIN.read.upcase

Although complete, this is hardly a proper application, which should include options, arguments, help, input error trapping, etc. I've created a skeleton for such a command-line application.

...
Read entire article
TextMate theme
Download Theme (once downloaded, simply double click on the file to install) I created the IR_Black theme, and some people asked for a white version of it. So instead of doing it manually I thought a quick Ruby script to make all the colors darker would work well.inf ...
Read entire article

Ruby OS X graphic

A fresh install of Mac OS X to Ruby on Rails, the right way, in a 28 minute screencast.

Many tutorials skip the little steps, causing people to get stuck. This screen-cast starts with a fresh install of Mac OS X Tiger (10.4.8), then goes step by step through the process of setting up a complete development environment for Ruby and Ruby on Rails.

I show you how to setup the following:

...
Read entire article