An implementation of rails tuts