Chapter 3 in "Learn Web Development With Ruby on Rails"