Always Learning

Advanced Search

The Rails 5 Way

The Rails 5 Way

4th Edition

Obie Fernandez,

Nov 2017, Paperback, 1088 pages
ISBN13: 9780134657677
ISBN10: 0134657675
Special online offer - Save 30%
Was 39.99, Now 27.99Save: 12.00
  • Print pagePrint page
  • Email this pageEmail page
  • Share

The Rails™ 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

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

  • Update of the best-selling Rails book, The Rails Way, a desktop fixture for Rails developers everywhere
  • Written by widely-known expert and programming entrepreneur, Obie Fernandez
  • Learn to implement the newly-released Rails 5

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.

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™ 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™ 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, InfoQ.com, .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