this is from chapter 2 of the Hartl Rails Tutorial.