I agree with all these. I would however recommend getting Agile Web Development With Rails directly from Pragmatic Press as you can be certain you're using the most up-to-date edition (4th with Rails 3.1) and can purchase solely the ebook if you want to save some money and/or trees.