Application of the first example from www.railstutorial.org