The Rails 5 Way

The Rails 5 Way

4.58 (31 ratings by Goodreads)
By (author) 

Free delivery worldwide

Available. Dispatched from the UK in 2 business days
When will my order arrive?


The Rails (TM) 5 Way is the only comprehensive, authoritative guide to delivering production-quality code with Rails 5. Kevin Faustino joins pioneering Rails developer Obie Fernandez to illuminate the entire Rails 5 API, including its most powerful and modern idioms, design approaches, and libraries. They present extensive new and updated content on Rails API, web sockets using Action Cable, RSpec 3.4, Turbolinks 5.0, and more.

Through detailed code examples, you'll dive deep into the Rails 5 code base, discover why Rails is designed as it is, and learn how to make it do exactly what you want. Proven in thousands 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-and refer to it constantly.

This guide will help you:

Build powerful, scalable, REST-compliant backend services
Program complex program flows using Action Controller
Represent models, relationships, CRUD operations, searches, validation, callbacks, and more in Active Record
Smoothly evolve application database schema via Migrations
Apply advanced Active Record techniques: single-table inheritance, polymorphic models, and more
Create visual elements with ActionView and partials
Optimize performance and scalability with view caching and Turbolinks 5.0
Master the highly productive Haml HTML templating engine
Make the most of Rails' approach to session management
Secure your systems with authentication and authorization
Resist SQL Injection, XSS, XSRF, and other attacks
Integrate email services with Action Mailer
Enable real-time, web sockets based browser behavior using Rails 5's ActionCable
Improve overall responsiveness using background processing
Use Asset Pipeline to simplify development, improve perceived performance, and reduce server burdens
Specify and test maintainable code using RSpec
show more

Product details

  • Paperback | 1088 pages
  • 176 x 231 x 34mm | 1,320g
  • Addison-Wesley Educational Publishers Inc
  • New Jersey, United States
  • English
  • 4th edition
  • 0134657675
  • 9780134657677
  • 473,192

Table of contents

Previous Edition Table of Contents

Chapter 1: Rails Environments and Configuration
Chapter 2: Routing
Chapter 3: REST, Resources, and Rails
Chapter 4: Working with Controllers
Chapter 5: Working with Active Record
Chapter 6: Active Record Migrations
Chapter 7: Active Record Associations
Chapter 8: Validations
Chapter 9: Advanced Active Record
Chapter 10: Action View
Chapter 11: All about Helpers
Chapter 12: Haml
Chapter 13: Session Management
Chapter 14: Authentication and Authorization
Chapter 15: Security
Chapter 16: Action Mailer
Chapter 17: Caching and Performance
Chapter 18: Background Processing
Chapter 19: Ajax on Rails
Chapter 20: Asset Pipeline
Chapter 21: RSpec
Chapter 22: XML
Appendix A: Active Model API Reference
Appendix B: Active Support API
Appendix C: Rails Essentials
show more

Review quote

Praise for The Rails Way "For intermediates and above, I strongly recommend adding this title to your technical bookshelf. There is simply no other Rails title on the market at this time that offers the technical depth of the framework than The Rails(TM) 3 Way." --Mike Riley, Dr. Dobb's Journal "I highly suggest you get this book. Software moves fast, especially the Rails API, but I feel this book has many core API and development concepts that will be useful for a while to come." --Matt Polito, software engineer and member of Chicago Ruby User Group "This book should live on your desktop if you're a Rails developer. It's nearly perfect in my opinion." --Luca Pette, developer "The Rails(TM) 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." --Katrina Owen, JavaRanch "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 out a pro on the other side." --Dirk Elmendorf, cofounder of Rackspace Inc. and Rails developer "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: The Ruby Blog "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, McClatchy Interactive, former editor in chief of Linux Magazine "Hal Fulton's The Ruby Way 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 "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,, .NET, and Ruby community editor and founding member of the Hartford 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
show more

About Obie Fernandez

Obie Fernandez resides in Mexico City and runs a boutique tech consultancy. He makes his living as an author and by helping clients to build kickass web software. Early in his career, he worked on some of the world's first Java enterprise projects and founded Atlanta's Extreme Programming User Group (later Agile Atlanta). At ThoughtWorks and his own agency Hashrocket, he led high-risk projects for massive companies like Daimler, John Deere, and Sony Ericsson, delivering some of the world's first successful enterprise Ruby on Rails systems. More recently, he has founded or consulted many successful technology startups, including Andela, which is well on its way to training 100,000 brilliant young Africans to become the world's next generation of technology leaders. His previous books include The Lean Enterprise and Serverless.
show more

Rating details

31 ratings
4.58 out of 5 stars
5 68% (21)
4 26% (8)
3 3% (1)
2 3% (1)
1 0% (0)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X