Chapter Two of Michael Hartl's "Ruby on Rails Tutorial" book