I'm about to start doing some work on an app that uses mongo for the DB, but the site is in rails. Would this book be Java specific or would it be easily portable to ruby/rails?
The book has a few examples in Ruby and samples in an Appendix for Java. But on the whole, the book is language-agnostic. The techniques you'll learn will apply to any language environment.