I have also read a lot of books and watched tutorials to learn ruby on rails. But all of them, Ruby on Rails Tutorial by Michael Hartl was the best to me. It teaches Rails by guiding you through the development of three example applications of increasing sophistication. The tutorial’s examples focus on the general principles of web development needed for virtually any kind of website. The updates to this edition include full compatibility with Rails 5, a division of the largest chapters into more manageable units, and a huge number of new exercises interspersed in each chapter for maximum reinforcement of the material.