Part of Hartl Rails Tutorial.