Chapter 3 of the Ruby on Rails Tutorials