Leanpub Header

Skip to main content

Retired

This book is no longer available for sale.

The Rails 4 Way

There is a new edition of this book available:

The Rails 5 Way

PDF
EPUB
2,053
Readers
783
Pages
About

About

About the Book

The beta period for this book is over. Get your own paper and electronic versions at InformIT or Amazon and other traditional booksellers.

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.1. 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.

Notable Changes in the new edition

  • Discussion of "omakase" versus "prime" Rails stacks (as advocated by DHH vs TRW, et al)
  • Ruby 2.0 support in Rails
  • Native support for new Postgres Data types and enhancements in ActiveRecord
  • ActiveModel::Model "a really small, handy addition to Rails 4.0, which helps us to get classes that act more like ActiveRecord and easily integrate with ActionPack."
  • Asset Pipeline and Sprockets
  • Russian Doll-caching through key-based expiration with automatic dependency management of nested templates
  • Livestreaming for persistent connections
  • Comprehensive coverage of security topics (new chapter, including addition Strong Parameters)
  • Changes in HTTP handling in Rails: PATCH vs. PUT
  • Turbolinks (and significant updates to the Ajax chapter)
  • New comprehensive "Essential Gems" appendix highlighting the best add-on libraries that the Rails ecosystem has to offer

Share this book

Categories

Author

About the Authors

Obie Fernandez

The "one and only" Obie Fernandez is an avid writer and technology enthusiast, in addition to achieving worldwide success as an electronic music producer and touring DJ. He is a Principal Engineer at Shopify and boasts a legendary 30 year career in software development and entrepreneurship.

Obie has been CTO and co-founder of many startups including Mark Zuckerberg's beloved Andela and Trevor Owen's Lean Startup Machine. His published books include Patterns of Application Development Using AI many editions of The Rails Way and the acclaimed business title The Lean Enterprise. He also founded one of the world's best known Ruby on Rails web design and development agencies, Hashrocket and served for many years as the series editor for Addison-Wesley's Professional Ruby Series.

On the rare occasion when Obie is not busy building products, consulting clients or writing books, you can find him behind the lens of his camera or DJing in the dust at Burning Man.

Follow @obie on Twitter or email him at obiefernandez@gmail.com 

Leanpub Podcast

Episode 24

An Interview with Obie Fernandez

Kevin Faustino

Kevin Faustino is the founder and Chief Craftsman of Remarkable Labs, a boutique development agency specializing in Ruby on Rails. His career as a developer began in 2005 and he has been specializing in Ruby since 2008. Kevin is also the founder of the Toronto Ruby Brigade which hosts tech talks, hack nights and book clubs.

Follow @kfaustino on Twitter or email him at kevin@remarkablelabs.com.

Vitaly Kushner

Vitaly Kushner is a co-founder of Astrails, the best known Ruby on Rails consulting company in Israel. He has more then 20 years of industry expeerience in a wide range of technologies, from Sinclair Basic to Linux kernel drivers. Vitaly started using Rails in 2005, and it still serves as the primary "weapon" at Astrails for developing web applications and mobile backends.

Vitaly is a public speaker and has been promoting Ruby and Rails in Israel since 2006 when he helped organising and managing first Israeli Ruby Group. Vitaly speaks at conferences and teaches Ruby on Rails courses.

Follow @vkushner on Twitter, check out Astrails blog or email Vitaly at vitaly@astrails.com.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub