I like "Enterprise Rails". It's a rather contrarian Rails book in that it doesn't hew to the Rails anti-DB orthodoxy. It's clearly written and has a good example that evolves over the course of the book. It's meant to be a 2nd Rails book, after you're familiar with the framework.
* Recommended Ruby Books (http://antoniocangiano.com/ruby-and-rails-recommended-books/)
I have not updated the Rails page yet, but you should be fine with:
* Agile Web Development with Rails, Third Edition (http://www.pragprog.com/titles/rails3/agile-web-development-...)
Other books you may want to consider afterward are:
* The Art of Rails (http://www.amazon.com/Art-Rails-Programmer/dp/0470189487)
* Enterprise Rails (http://oreilly.com/catalog/9780596515201/).