From Ch1 of the Rails Tutorial.