Rails 4.0 version http://ruby.railstutorial.org/