rails sample_app (chapter 3)