Rals Tutorial http://ruby.railstutorial.org/chapters/beginning