Ruby on Rails demo app (chapter 2)