Chapter 2 demo_app from Michael Hartl's 'Learn Web Development with Ruby on Rails'.