Archive for the 'general' Category

Script/generate and add to svn at the same time

Friday, June 1st, 2007

I’m probably the last to know how to add files to svn as you are generating them. Add -c to your command: script/generate migration likeability_to_homes -c And you don’t have to svn add your way to carpel tunnel.

The Null Object Pattern for Users

Wednesday, February 21st, 2007

The Null Object Pattern certainly isn’t a new idea, but it’s simple and can really help clean up some code, so I thought I’d share an example. Background Our login system is based off of acts_as_authenticated, but very few of our pages require a user to be logged in. We want to find out about [...]

Rad Rad Rad Gems and Plugins for rails

Wednesday, February 14th, 2007

Things have come a long way since the first project I developed on rails. Starting out I wanted to keep things simple but now I can’t get enough of the time saving complexity that many great gems and plugins bring! So here they are, in no particular order at all, a few of the recent [...]

startups.each { |startup| startup.code.inspect }