Jump to ratings and reviews
Rate this book

Rails 4 Way, The

Rate this book
The "Bible" for Rails Now Fully Updated for Rails 4.1 "When I read The Rails Way for the first time, I felt like I truly understood Rails for the first time." --From the Foreword by Steve Klabnik Ruby on Rails 4 is leaner, tighter, and even more valuable to professional web developers. More than ever, it helps you focus on what matters delivering business value via clean and maintainable code. The Rails(TM)4 Way is the only comprehensive, authoritative guide to delivering production-quality code with Rails 4. Kevin Faustino joins pioneering Rails developer Obie Fernandez to illuminate the entire Rails 4 API, including its most powerful and modern idioms, design approaches, and libraries. They present extensive new and updated content on security, performance, caching, Haml, RSpec, Ajax, the Asset Pipeline, and more. Through detailed code examples, you'll dive deep into the Rails 4 code base, discover why Rails is designed as it is, and learn how to make it do exactly what you want. Proven in dozens of production systems, this book's techniques will maximize your productivity and help you build more successful solutions. You'll want to keep this guide by your computer--you'll refer to it constantly. This guide will help you
Build powerful, scalable REST-compliant APIs
Program complex program flows using Action Controller
Represent models, relationships, CRUD operations, searches, validation, callbacks, and more
Smoothly evolve application database schema via Migrations
Apply advanced Active Record single-table inheritance, polymorphic models, and more
Create visual elements with Action View and partials
Optimize performance and scalability with view caching
Master the highly productive Haml HTML templating engine
Make the most of Rails' approach to session management
Secure your systems with Rails 4's improved authentication and authorization
Resist SQL Injection, XSS, XSRF, and other attacks
Extend Rails with popular gems and plugins, and learn to write your own
Integrate email services with Action Mailer
Use Ajax via Rails 4 support for unobtrusive JavaScript
Improve responsiveness with background processing
Leverage Asset Pipeline to simplify development, improve perceived performance, and reduce server burdens
Accelerate implementation and promote maintainability with RSpec

872 pages, Kindle Edition

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
23 (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.
126 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.
356 reviews50 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.
240 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.
277 reviews3 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.