This repository has example codes in Rails Tutorial Book; http://ruby.railstutorial.org/ruby-on-rails-tutorial-book