Chapter 2 of RAILS TUTORIAL