Application of the third example from www.railstutorial.org