Praise for the Previous Edition
This encyclopedic book is not only a definitive Rails reference, but an indispensable guide to Software-as-a-Service coding techniques for serious craftspersons. I keep a copy in the lab, a copy at home, and a copy on each of my three e-book readers, and it’s on the short list of essential resources for my undergraduate software engineering course.
—Armando Fox, adjunct associate professor, University of California, Berkeley
Everyone interested in Rails, at some point, has to follow The Rails Way.
—Fabio Cevasco, senior technical writer, Siemens AG, and blogger at H3RALD.com
I can positively say that it’s the single best Rails book ever published to date. By a long shot.
—Antonio Cangiano, software engineer and technical evangelist at IBM
This book is a great crash course in Ruby on Rails! It doesn’t just document the features of Rails, it filters everything through the lens of an experienced Rails developer—so you come our a pro on the other side.
—Dirk Elmendorf, co-founder of Rackspace, and Rails developer since 2005
The key to The Rails Way is in the title. It literally covers the “way” to do almost everything with Rails. Writing a truly exhaustive reference to the most popular Web application framework used by thousands of developers is no mean feat. A thankful community of developers that has struggled to rely on scant documentation will embrace The Rails Way with open arms. A tour de force!
—Peter Cooper, editor, Ruby Inside
In the past year, dozens of Rails books have been rushed to publication. A handful are good. Most regurgitate rudimentary information easily found on the Web. Only this book provides both the broad and deep technicalities of Rails. Nascent and expert developers, I recommend you follow The Rails Way.
—Martin Streicher, chief technology officer, McLatchy Interactive; former editor-in-chief of Linux Magazine
Hal Fulton’s The RubyWay has always been by my side as a reference while programming Ruby. Many times I had wished there was a book that had the same depth and attention to detail, only focused on the Rails framework. That book is now here and hasn’t left my desk for the past month.
—Nate Klaiber, Ruby programmer
As noted in my contribution to the Afterword: “What Is the Rails Way (To You)?,” I knew soon after becoming involved with Rails that I had found something great. Now, with Obie’s book, I have been able to step into Ruby on Rails development coming from .NET and be productive right away. The applications I have created I believe to be a much better quality due to the techniques I learned using Obie’s knowledge.
—Robert Bazinet, InfoQ.com, .NET and Ruby community editor, and founding member of the Hartford, CT, Ruby Brigade
Extremely well written; it’s a resource that every Rails programmer should have. Yes, it’s that good.
—Reuven Lerner, Linux Journal columnist
Customer Reviews & Comments
The Rails 3 Way is an interesting book representing a large amount of effort digging into Rails 3. It shares insights and technical knowledge you'd struggle to patch together from blog posts and documentation. It's a very opinionated book and will not be to everyone's taste. For starters, ERb isn't covered at all, instance variables in views are scowled at, and Test::Unit is treated with contempt.
It's not an introductory book in any sense and Obie acknowledges this in his introduction. Obie bills it as a "day-to-day reference for the full-time Rails developer" - a fair description IMHO, but the book feels disjointed in places and has a scattershot approach to what it cares to cover. You need to be clued up to digest this book properly. For an intermediate to expert Rails developer (especially one yet to move to Rails 3) or an expert Rubyist new to Rails, The Rails 3 Way is a useful book that unearths some of the trickier parts of Rails 3 a professional needs to know about. I recommend it - but not as wholeheartedly as the original edition for a number of reasons:
* Parts of the book feel curiously short or scattershot in their coverage. The AJAX on Rails chapter is a mere 16 pages. The RSpec chapter is 33 pages long and provides only an overview (and says as much) though given the recent release of RSpec 2.0 and the new RSpec book, this may be a plus. Rails Engines aren't discussed or covered at all except for a small sidenote that links you to a gist on GitHub. It's not all bad though - some chapters are great, complete guides to a topic, such as Active Record Associations and Advanced Active Record.
* A lot can be gathered from what's not mentioned in the book at all: Capybara, Selenium, Webrat, Searchlogic, SASS, factory_girl.. It wouldn't be expected for a book like The Rails 3 Way to go into depth with any of these tools but having no mentions of them when related issues are raised feels like a missed opportunity to give people some guidance. The lack of Webrat is bizarre since the only full integration test shown in the book clearly uses it. Webrat is neither mentioned nor explained. Nor is Capybara, Webrat's heir apparent.
* The concept of using a different ORM than ActiveRecord is mentioned only once, in the context of running --skip-migration on a rails generate in order to prevent ActiveRecord migrations being generated. Considering what a big deal ORM agnosticism was when developing Rails 3, this is a disappointment.
* Concepts are sometimes used in code but not mentioned in the text. In the RSpec chapter, for instance, the first example includes a call to factory_girl's Factory method, yet nothing about factory_girl or the benefits of factories is covered. I only know it's factory_girl being called because the gem's name appears in the copy-and-pasted output from running bundle install 500 pages earlier.
* Tests are rarely used or demonstrated except in the RSpec overview, Working With Active Record (4 test snippets in 39 pages), Action Mailer (once), and Active Record Associations (6 test snippets in 50 pages). Oddly, though, 4 stray instances of using Test::Unit instead pop up when writing a test for a belongs_to association - it's never used again anywhere else in the main part of the book..
Nonetheless, I recommend the book. It's a flawed champ. While there are other great Rails books in the pipeline, The Rails 3 Way offers a lot right now, as long as you're either happy to look past its flaws or skilled enough to mentally fill in the blanks..