Rails sample app, see. http://www.railstutorial.org/book/