chapter 2 of Hartl Rails tutorial