Chapter 3 of rails tutorial