a tutorial http://www.railstutorial.org/book