I was planning to write this post for a long, long time, but procrastination won't let me. I finally wrote this post. What's the point of writing this post? Well, lots of people ask for a recommended list of good Ruby and Rails book, so in order to DRY my efforts I had to write this post, so that I can point them here.
So without further ado, let's make a list.
1. Learn to Program by Chris Pine: If you need a gentle introduction to Ruby, then this is the best book for you. The online version of this book is free, and you can read it here.
2. Programming Ruby 1.9 & 2.0: This is more of a reference book than a tutorial book, so be prepared to dive into the details. Also, this might be the only Ruby book you'll ever need.
3. Eloquent Ruby: This is definitely one of the best programming book I've ever read. The book is so concise and easy to read that anyone who is blessed with little to no knowledge of Ruby can finish it within 24 hours.
4. Practical Object Oriented Design in Ruby: This book is all about writing changeable code. Code that will be easy to change without being the pain in the ass. Sandi will show you the code that sucks and isn't easy to change and replace it with more elegant and changeable code.
5. Learn Ruby on Rails by Daniel Kehoe: This is the book for absolute newbies, but still if you are a more advance developer who is new to Rails you will be tremendously benefited from this book: After reading this you will be ready to learn and understand more advance books like Rails Tutorial.
6. Agile Web Development with Rails 4: This is one the best book for web development and is so interesting that I read it cover to cover(well almost). If you are new to Ruby and Rails then you should start with this book instead of starting with Ruby on Rails Tutorial by Michael Hartl.
7. Ruby on Rails Tutorial: If you are serious about Ruby on Rails, then you will read it couple of times. This book is filled with useful information. Michael Hartl will teach you web development by building sample application(Twitter Clone).
8. Ruby on Rails Guides: I know this isn't a book, but it is available in the mobi(kindle) version. Yay!
9. The Rails 4 Way: This book has been recommended so many times by so many good developers that I had to include it in this list and to be honest, I've not spent enough time on this book to comment on its content.
10. The RSpec Book: If you are interested about testing the behavior of your application, then this is the only book you'll ever need. This book is more about BDD than Rspec
11. Pro Git: This is by far the best Git book out there, plus it is freely available in pdf, mobi and epub formats. This book is easy to read, easy to understand (via visual representations) and is so concise that you'll understand it in one read even if you are an absolute newbie. Also available on amazon.
12. The Bastards Book of Ruby if you are interested in web scraping and stuff.
Recommended Order for Rails developers: 1, 5, 6, 7, 8, 10, 11, 3, 2, 4, 9, 12 or something similar to this depending on your preference.
If I had you start over today, then I'd blindly follow this list.