Home > Store

The Rails 5 Way, 4th Edition

The Rails 5 Way, 4th Edition

eBook (Watermarked)

  • Your Price: $31.99
  • List Price: $39.99
  • Estimated Release: Nov 24, 2017
  • Includes EPUB, MOBI, and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    MOBI MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

    Adobe Reader PDF The popular standard, used most often with the free Adobe® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

Also available in other formats.

Register your product to gain access to bonus material or receive a coupon.


  • Copyright 2018
  • Dimensions: 7-3/8" x 9-1/8"
  • Pages: 1040
  • Edition: 4th
  • eBook (Watermarked)
  • ISBN-10: 0-13-465778-0
  • ISBN-13: 978-0-13-465778-3

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

Sample Content

Table of Contents

Foreword (to The Rails™ 5 Way)

Foreword (to The Rails™ 4 Way)

Foreword (to The Rails™ 3 Way) by David Heinemeier Hansson

Foreword (to The Rails™ 3 Way) by Yehuda Katz



About the Author

Chapter 1: Rails Configuration and Environments

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: Asset Pipeline

Chapter 20: Ajax on Rails

Chapter 21: Turbolinks

Chapter 22: Action Cable

Chapter 23: RSpec

Appendix A: Active Model API Reference

Appendix B: Active Support API Reference

Appendix C: Rails API



Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership