Book of Rails, 2nd edition, chapter 3 and rest of the tutorial's example