Monthly Archives: November 2007

Rails before_destroy gotcha

So there’s a Category that has many Expenses. The expenses for a category are destroyed when the category is destroyed. Elsewhere in my logic I would like to know if the category is removable based on whether it has any expenses and, if it does, whether any of the expenses it has are [...]

.irbrc tweakage

If you are a Rails programmer and you are not tweaking your ~/.irbrc file, you are really missing out. I sure was. Jeffrey Hardy has an excellent starting point for you. Grab it. You won’t be disappointed.

Any other .irbrc tweakage to share? (For instance, err [must read] and err and [...]

GTD quarterly financial temperature checklist

Photo by ceoln

Every six months my family likes to undergo a semi-drastic life change. Nearly a year ago I left the corporate world to be a freelance and entrepreneurial web programmer. Then we had our second child. In 2008, The Wife will be dropping to a [...]

A Rails way to popup secondary windows

Photo by rbatina

I had to solve a hairy problem recently. For a select number of pages on a site, I needed to pop up a secondary window along with the current action. This window contained a request for filling out a survey (held at a third party [...]

RuntimeError: expected > (got …

Does that title make sense to you? If not, you’re not alone. I dealt with that bit of text for several hours the other day. It’s the beginning of an error message that my pea-sized brain could not parse for the life of me. I received the message while running a [...]