The Rails 3 Way (2nd Edition) and over 2 million other books are available for Amazon Kindle . Learn more
  • RRP: £31.99
  • You Save: £1.60 (5%)
FREE Delivery in the UK.
Only 8 left in stock (more on the way).
Dispatched from and sold by Amazon.
Gift-wrap available.
Add to Basket
Trade in your item
Get a £1.89
Gift Card.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

The Rails 3 Way (Addison-Wesley Professional Ruby) Paperback – 10 Dec 2010

Amazon Price New from Used from
Kindle Edition
"Please retry"
"Please retry"
£14.99 £4.50

There is a newer edition of this item:

Frequently Bought Together

The Rails 3 Way (Addison-Wesley Professional Ruby) + Eloquent Ruby (Addison-Wesley Professional Ruby)
Price For Both: £55.18

Buy the selected items together


Product details

  • Paperback: 768 pages
  • Publisher: Addison Wesley; 2 edition (10 Dec 2010)
  • Language: English
  • ISBN-10: 0321601661
  • ISBN-13: 978-0321601667
  • Product Dimensions: 22.8 x 17.8 x 3.9 cm
  • Average Customer Review: 4.8 out of 5 stars  See all reviews (4 customer reviews)
  • Amazon Bestsellers Rank: 364,340 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index
Search inside this book:

Customer Reviews

4.8 out of 5 stars
5 star
4 star
3 star
2 star
1 star
See all 4 customer reviews
Share your thoughts with other customers

Most Helpful Customer Reviews

4 of 4 people found the following review helpful By Stuart on 27 Mar 2011
Format: Paperback
This book is neither a reference manual nor a beginners guide to rails, it is not going to try and teach you Ruby, and it does not take you through building a Rails application, and it makes certain assumptions about the gems and libraries you should be already using to develop and test Rails Applications. It is however a fantastic book to unravel some of the deepest mysteries of RoR, explaining how Rails works its magic from under the hood in an easy to understand dialogue and sensible format, giving an in depth view of each of the elements that make up the Rails stack, (Config, Routes, Controllers, Active Record, Action View, Helpers, plus much more) while showing you how to keep to the path of least resistance. I haven't read it 'cover to cover' yet, but its a great book to just pick up, choose a section and expand your knowledge. I am not a Rails expert, and would consider myself to be at an intermediate level with both Ruby and Rails, which is why I am finding The Rails Way the perfect tool to bridge my knowledge of a fantastic programming language and a powerful web development tool. If you are developing websites with Ruby on Rails, you would truly benefit from reading this book.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
Format: Kindle Edition Verified Purchase
This book lifted back the covers of Ruby on Rails 3.0 and allows a more experienced developer to learn about how to bend the framework to their needs as necessary.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
By meh on 24 Dec 2012
Format: Paperback Verified Purchase
Great book for digging into the makeup of rails. It's such a powerful framework with huge and extensive API documentation available online, but it does benefit from the human touch provided in this book.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
Format: Paperback Verified Purchase
I originally purchased the original Rails Way - along with the Ruby Way (and others in the series) - I have always rated these books highly and this rewrite to cover rail3 is again excellent as expected.

I have also ordered a 'companion' which is the Ruby Tutorial - which seems to have been delayed in release (with DVD) - and have in my impatience purchased the package direct from the authors web site - in pdf and ipod/QTime format.

I cannot express how highly I regard this book alongside the others in the same series.

I would add more specifics but am working my way through book - and will update review with specifics again. Great Coverage!
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Helpful Customer Reviews on (beta) 20 reviews
56 of 58 people found the following review helpful
A Rails 3.0 reference for experts, but a flawed champ.. 20 Dec 2010
By Peter Cooper - Published on
Format: Paperback
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..
22 of 23 people found the following review helpful
Not a good reference, not a good intro 6 Sep 2011
By David Copeland - Published on
Format: Paperback Verified Purchase
Had I written this review after about a month with this book, I would've given it very high marks. However, after several months with it, attempting to us it in a real Rails 3 project, I find it wanting.

It's billed as a reference for Rails 3, and seems intended as something to have dog-eared, by your side, while cranking out a Rails app. In my experience over the last several months, it has been a source of frustration, providing me with little more than introductory information on topics that, sadly, are better covered by the rails guides or in various blog posts.

The section on Active Record, specifically on querying, is very light. It's mostly a printout/summary of some of the methods available, with no substantive examples, or anything close to what might be required in the real world. AREL is barely mentioned; all we get is a link to the github page.

There are two bigger disappointments: testing and AJAX.

The AJAX section is not remotely sufficient to become effective with the rails 3 Unobtrusive JavaScript stuff, and most of this section is spent on RJS, which the book says is not recommend (so why is it there?). The way in which Rails deals with AJAX, and the tools it provides, are very poorly documented in general, and this is the sort of gap you'd expect this book to fill in. Not the case.

Testing: Testing is not even listed in the index. Let me repeat that: Testing is not even listed in the index. There is a chapter on RSpec, which is wholly out of place, most of the chapter just dealing with general RSPec stuff. There is some rails-specific stuff, but overall this is IT for testing. Again, the tools and APIs Rails provides for testing are powerful, but very weakly documented, and this book completely drops the ball on filling in this crucial gap. I find it rich, since the Rails community prides itself on testing. Additionally, it seems inconsistent with other non-Rails-default choices (Test::Unit being the default); HAML is used in all view examples, yet there isn't even a mention of it as being nonstandard, nor is there so much as a SIDEBAR to explain how it works. While I personally think using HAML was a bad choice, if the case is to be made that it's superior; at least throw people a bone so they understand what it is, why it should be used, and how it works.

A big chunk of the book is simply formatted API documentation. This information can be easily found online, and is far easier to search.

Given all of this, I've found that The Rails 3 Way has not ONCE provided me with the answer to an issue I was having building what I believe to be a very simple website. Every time, I've closed the book and searched the web, often finding clear and cogent explanations; the exact things that should be in this book!

A book that touts itself as a reference for advanced Rails development should provide more in-depth explanation of not just how things work, but how to go about discovering advanced features and diagnosing problems.

If you are looking for introductory material, I'd advise against this, and if you are looking for more advanced coverage, again, I cannot recommend this book.
38 of 43 people found the following review helpful
Kindle version is unusable 12 Jun 2011
By Johan Pretorius - Published on
Format: Kindle Edition Verified Purchase
I have no issue with the contents of the book, only the Kindle implementation thereof.

Listings and tables are converted to images, and some of those are so small that it is all but impossible to read on the Kindle.

Unfortunately, the Kindle for PC version is even worse, the image rendering is pathetic, to say the least.

I've bought 3 other Kindle books from the Addison-Wesley Professional Ruby Series as well, only Eloquent Ruby and Rails AntiPatterns can be read in their entirety on the Kindle, Service-Orientated Design with Ruby and Rails is as badly delivered as The Rails 3 Way.

At least one can get some of the missing details by looking at the source code repositories for each book, but that is no excuse. If you buy a book (paper copy), surely the expectation is that all pages can be read?
15 of 17 people found the following review helpful
Valuable unless you're very beginner or very expert 1 Jun 2011
By Katrina Owen - Published on
Format: Paperback
The Rails 3 Way is not quite a reference manual, nor is it a tutorial.

Before picking this up, you're probably going to want to have hit your head against something in the framework, or have tried to solve something that the framework doesn't necessarily lend itself well to, or just plain gotten stuck on something. In short, I think that you need a fair amount of context before this book is useful in any way. Not enough, and your eyes will glaze over, too much and it will seem to be restating the obvious without giving you any finer points to chew on.

This book's best audience is probably the intermediate Rails developer who has written some rails applications, has a basic understanding of the RoR framework, but still thinks that much of what happens is "magic".

If this is you, this book has much to offer. It covers all the major pieces of developing with Rails 3 from configuration to AREL to caching to writing your own plugins (and more).

For such a developer, The Rails 3 Way is likely to take you from being a haphazard poke-a-stick-at-it programmer to a deliberate, skillful, productive, and confident RoR developer.
4 of 5 people found the following review helpful
Light and Scattered 5 April 2012
By Eric C. Jones - Published on
Format: Paperback
I've been reading this book for about 2 months now and I am not impressed. It lightly glazes over many important topics. It never seems to explain anything in enough detail. The code examples never have enough context to be useful for more than increasing the volume of the book. Just not a good book at all.
Were these reviews helpful? Let us know

Product Images from Customers


Look for similar items by category