Chapter 3 of Rails Tutorial by Michael Hartl