Ruby is a language that attracts both: those with no programming experience and those who know several languages and want to expand their skills.Alongside the popular framework, Ruby on Rails, or Rails for short, it’s one of the most accessible and many would say, beautiful programming languages around. Before you can create anything in Rails, you need to understand Ruby and gain some practical experience, which is why these books serve a useful dual purpose in pointing you in the right direction for gaining experience. Ruby is a dynamic, open-source programming language that focuses on simplicity and maximising a programmer’s productivity. Created and launched by Yukihiro “Matz” Matsumoto in 1995, it achieved mass acceptance and consideration in 2006, with millions of programmers using Ruby to create web applications around the world. It is now in version 2. Since it’s open source, Ruby is free to use, modify and distribute, with millions contributing to the evolution of the language.Learning Ruby on Rails and gaining an understanding of how to code in in this language effectively is best achieved through online tutorials and courses, and videos. Coverage of those you may find in our previous blog post. Alongside reading, tutorials and videos, when beginning with Ruby On Rails you should always include practical lessons, exercise and experiences. In this article, however, we decided to list the most useful books, which will definitely help you to make a good start here.
Top Ruby Books
1 Top Ruby Books
2 Best Ruby on Rails Books
The Well-Grounded Rubyist
Manning Publications, 2014David A. BlackThe Well-Grounded Rubyist is useful for beginners but doesn’t shy away from advanced topics and in-depth explanations. It also means it’s useful for experienced developers (in other languages) wanting to start with understanding Ruby.
David A. Black is the author of several books on this subject. He is a well respected, internationally-renowned Ruby developer, trainer, speaker and an event organizer. He contributes to the Ruby standard library and is a founder of Ruby Central Inc., the parent company behind official international Ruby/Ruby on Rails conferences.
Addison-Wesley Professional, 2011Russ OlsenEloquent Ruby is described as “a smooth introduction to Ruby that’s both well organized and enjoyable to read, as it covers all the essential topics in the right order.” Perfect for beginners. The author has made other valuable contributions to the Addison-Wesley Professional series, blogs about Ruby and speaks on the topic around the world.
Russ Olsen is well worth a read. He first discovered Ruby in 2000, before it becomes as popular as it is now. He created several projects using the language before incorporating it into his professional skill set and has also produced a book on Design Patterns In Ruby. Russ is keen to ensure technology serves the needs of people, not the other way round and has a keen interest in exploring new technology, including Clojure and 3D printing.
Self-published, 2015Jim GayOn the website promoting the eBook – and Clean Ruby Plus Package – the author, Jim Gay, describes problems that many Ruby programmers encounter every day. As applications expand, codebases get complicated and figuring out even simple problems takes longer and longer, especially if you start working on new projects or with new developers.Jim produced this book and the extra resources to assist coders with these problems. The aim is to “write code that un-complicated the logic and put it in plain view, that would make things so much clearer.” Clean Ruby comes with dozens of positive recommendations.
One happy reader said “I wish I were living inside Jim Gay’s codebase”, and numerous other positive reviews talk about how fun this book is to read. Even Avdi Grimm, a noted author – see one of his books below – praises this book, describing Jim as one of the foremost experts at applying the clean approach to writing code.
Self-published, 2013Avdi GrimmAvdi Grimm is a prolific contributor to the Ruby ecosystem, the author of two other books – Exceptional Ruby and Objects on Rails – ideal for intermediate and advanced programmers. He is also the “head chef” at RubyTapas and co-host of Ruby Rogues podcast.
In this, “a book about joy” he helps intermediate developers learning Ruby on Rails to code in a clear, logical way, to avoid “code constantly second-guessing itself; and replacing it with a confident, clear focus on the task at hand.” Included in the book are 32 patterns and new ways of thinking, so that when faced with “real world” problems and challenges, aspiring and more experienced developers can find solutions using the story of the code and aims, instead of picking up clues based on whatever building blocks happen to be lying around.
Practical Object-Oriented Design in Ruby: An Agile Primer
Addison-Wesley Professional, 2012Sandi MetzThis book, one of the most well-known Ruby books, is more suitable for intermediate to expert programmers, especially if you are new to Object-Oriented Design. It is considered one of the most useful, practical primers on this subject and the author is a renowned expert on OOP in Ruby.
When you are ready to progress onto Ruby on Rails books, here are some of the most up-to-date we can recommend. There are numerous others around but some are quite outdated now, and it always helps to read these alongside online courses, tutorials or while learning through practical lessons and experience.
Metaprogramming Ruby 2: Program Like the Ruby Pros
Facets of Ruby series, 2014Paolo PerrottaWe only advise picking this up if you are an experienced Ruby developer. Perfect for unearthing “Ruby’s most advanced feature: a collection of techniques and tricks known as metaprogramming.” Some experience is required before you can “discover the deep, non-obvious details of the language”, which this book promises to assist with. The second edition is equipped with 33 practical lessons and covers features in Ruby 2.0 and 2.1.
Best Ruby on Rails BooksOnce you feel confident enough with the language itself, and want to learn Ruby on Rails, we recommend starting with this short list. It includes some of the best Ruby On Rails books on the market, with up-to-date practical examples, lessons and techniques.
Ruby on Rails Tutorial
Self-published, since 2012Michael HartlThis tutorial is part of the Learn Enough to Be Dangerous, with everything from monthly Ruby tutorials to a package which includes the most recent eBook and earlier versions, plus an entire screencast tutorial series and 50 hours of video.
The creator, Michael Hartl is a former Y Combinator entrepreneurial alumni and received a Ruby Hero Award in 2011 for contributions to the community. The Tutorial is invaluable addition to any “Ruby on Rails books for beginners” list, and is equally valuable for those with some experience.
The Rails 5 Way (4th Edition)
Addison-Wesley Professional, 2017
Currently pre-orderObie Fernandez and Kevin FaustinoObie Fernandez is a prominent Rails advocate, once notorious for attacking the failings of Java and promoting Rails framework. He is an experienced developer and was an editor of the Wesley Professional series of books helping to learn Ruby and Rails.
Although not published yet, this series has proven to be popular and effective at teaching those new to the framework. One worth downloading as soon as it is released, which is why we are happy to add this to the list of best RoR books in 2017.
Refer to our guide to learn more about the agile product development process.
Agile Web Development with Rails 5
Pragmatic Bookshelf, 2016Sam RubyAnother book that is worth reading, with the fifth edition updated to include Rails 5 and Ruby 2.2. Perfect for those beginning with Ruby on Rails and developers with plenty of knowledge but not enough practical and theoretical knowledge of Rails.