learning through http://ruby.railstutorial.org/