Jump to ratings and reviews
Rate this book

The Rails 4 Way

Rate this book
In less than ten years, with fanatical support of a veritable army of open source contributors, Ruby on Rails has forcefully taken its place as the dominant king of web frameworks. It has conquered developer mindshare at startups and enterprises alike with its focus of simplicity, convention and clean, maintainable code. The latest version, Rails 4, continues the tradition of enhanced performance, security and developer productivity, with improvements that enable professional developers to focus on what matters most: delivering business value quickly and consistently.

The Rails™ 4 Way is the only comprehensive, authoritative guide to delivering production-quality code with Rails 4. Pioneering Rails expert Obie Fernandez and his team of leading Rails experts illuminate the entire set of Rails APIs, along with the idioms, design approaches, and libraries that make developing applications with Rails so powerful. Drawing on their unsurpassed experience and track record, they address the real challenges development teams face, showing how to use Rails to maximize your productivity.

Using numerous detailed code examples, the author systematically cover Rails key capabilities and subsystems, making this book a reference that you depend on everyday. He presents advanced Rails programming techniques that have been proven effective in day-to-day usage on dozens of production Rails systems and offers important insights into behavior-driven development and production considerations such as scalability. Dive deep into the subtleties of the asset pipeline and other advanced Rails topics such as security and scalability. The Rails 4 Way is your best guide for making Rails do exactly what you want it to do.

771 pages, Unknown Binding

First published January 1, 2013

25 people are currently reading
124 people want to read

About the author

Obie Fernandez

14 books6 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
65 (40%)
4 stars
66 (40%)
3 stars
24 (14%)
2 stars
5 (3%)
1 star
2 (1%)
Displaying 1 - 12 of 12 reviews
Profile Image for Ney Guerrero.
19 reviews7 followers
January 16, 2014
This is THE BOOK for Rails development it can get you to a pretty darn good level of Rails Kung Fu
7 reviews
September 13, 2014
“The Rails 4 Way”, is a great reference book that covers most of what a Rails developer is likely to need on a daily basis. It covers the various DSLs and idioms (i.e. route definition, controller filter declaration, ActiveModel association and validations, etc) without getting into the details of Rails internals and how those features are implemented. The explanations are clear and the code examples relevant.

Just like Rails itself, “The Rails 4 Way” is opinionated and occasionally differs from the omakase way; Most notoriously, but hardly controversial, using Haml as a template engine and Rspec for testing.

Most of the book can be read cover-to-cover or used as a reference on particular topics. The exception is section about rails helpers (Chapter 11) which, as the author themselves point out, is really just an alphabetical listing of the methods available, like the one usually found on appendices or online documentation.

I recommend this book to new Rails developers (maybe after trying out an online tutorial) and for experienced Rails developers who are still working on Rails 3 (or 2!) and are expecting to make the jump to Rails 4 in the near future.
Profile Image for huydx.
33 reviews14 followers
June 6, 2014
An essential book for any intermediate RoR developer. This book provides almost anything about rails, enough for you to understand Rails FW inner.
Profile Image for Austin.
125 reviews2 followers
February 23, 2019
This book's description and its reviews led me to believe that it would discuss more of the bigger ideas behind how Rails is designed, those ideas that underlie the Rails conventions. The back cover, for example, promises that the reader will "discover why Rails is designed as it is."

But no such thing happens. Instead of discussing ideas or motivations, the book is mostly just a survey of Rails functionality. The vast majority of the book can be found in the Rails online documentation.
Profile Image for Abdullah Barrak.
47 reviews2 followers
December 30, 2016
"The Rails 4 way" by Fernandez and Faustino is a great read about Ruby on Rails that goes through its various parts (Active Record, Action Pack and MVC, Routing, Testing & RSpec, JavaScript integration, Queues & ActiveJob, utilities & Active Support, Assets, and plenty others..).

It introduces the chapters progressively - but still requires a certain level of familiarity and background in the framework - covering the usage, concepts, API, practices, "Rails golden path(s)" so to speak, and even diving into the internal implementation occasionally.

You would read the book in order. choose the chapters that interests you the most, or keep it as a reference to any topic you want to revise later.

"Rails Guides" is a nice complementary resource with the book which also helps to catch up with the new release of Rails 5 ..
Profile Image for Anton Antonov.
350 reviews48 followers
December 27, 2015
A must read for every Rails developer.

Before starting to read the book, being familiar with the Rails style guide at - https://github.com/bbatsov/rails-styl... , would set you up with the right attitude towards the book and safely skip chapters "Chapter 5 Working with ActiveRecord" and "Chapter 6 ActiveRecord migrations".

If you're time boxed, but also gain the most from the book regarding advanced Rails knowledge, go for chapters:

* Session Management,
* Caching and Performance,
* Background Processing,
* Ajax on Rails (I personally never use the built-in AJAX functionality in Rails),
* Asset Pipeline (it's better to know your enemy sooner than later),
* RSpec (good intro, but you should check out "Rails 4 Test Prescriptions: Build a Healthy Codebase" at some point)
Profile Image for Siarhei.
33 reviews
May 31, 2016
The very interesting book about Ruby on Rails framework. I have the edition of 2007 in one month. Covered mostly 70% of the book. But without practice it looks like a pure philosophy. Then applied in practice obtained theory and it worked. But anyway to practice Ruby on Rails you are to use API, good debugger like a pry, of course keep a Ruby handbook at your desktop, try TDD it really works, writing code and then covering it with tests quickly tests your understanding upon a subject, and thus you look at your code from different of views.
Profile Image for Lawrence.
239 reviews4 followers
unfinished
February 16, 2015
this is a framework reference. not a book you can sit down and read or go through the exercises cover to cover...
Profile Image for Jeffrey Dill.
274 reviews4 followers
April 1, 2015
This is an absolute must-have for any Rails developer.
Displaying 1 - 12 of 12 reviews

Can't find what you're looking for?

Get help and learn more about the design.