From: RailsTutorial.org - Chapter 2.