Upgrade to Rails 4

A thorough guide for upgrading your Rails 3 app

127 readers

100% Happiness guarantee Learn more

Minimum: $9.99

Suggested: $17.00+

Ways to buy

  • Free sample download
  • 127 readers
  • 84 pages
  • 14,363 words
  • Book language: English

About the Book

Covering new Rails 4 features such as Turbolinks, Live Streaming and Strong Parameters!

Have you been thinking of upgrading your Rails application to Rails 4 but don't know where to start? Are you curious about the new features Rails 4 introduces? Then Upgrade to Rails 4 is the perfect book for you.

Rails 4 introduces an abundance of new features. Learn about these to stay up to date with the latest developments, and modernize your application. All deprecated features will be covered in depth along with an explanation of how to replace them. Using the included checklist, you can verify that you have updated all breaking changes when upgrading your Rails 3 application.

Upgrade to Rails 4 contains more than 32 chapters covering important new and deprecated features in Rails 4.

About the Author

Philip De Smedt is the co-founder of 3bytestrings, a development shop for Ruby on Rails applications. He has a breadth of experience as a lead developer and CTO using technologies such as Ruby on Rails, Node.js and ElasticSearch. He has been heavily involved in the start-up world with his previous company Mashpan. Mashpan was recognized as one of the top 20 tech startups in Europe by business incubator Seedcamp. When he's not developing software, he is cycling or writing on his blog Ruby Snippets.

The Leanpub Unconditional, No Risk, 100% Happiness Guarantee


Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks. We process the refunds manually, so they may take a few days to show up. See full terms.

If you buy a Leanpub book you get all the updates to the book for free! All books are available in PDF, EPUB (for iPad) and MOBI (for Kindle). There is no DRM. There is no risk, just guaranteed happiness or your money back.

Table of Contents

    • Who should read this book
    • About the Author
    • Upgrading your Rails gem
  • New Features
    • Turbolinks
      • How does it work?
      • Disable Turbolinks
      • How much faster is Turbolinks?
      • Using Turbolinks in Rails 3
    • Controller-Wide ETags
      • How does it work?
    • Russian Doll Caching
      • How does it work?
      • Cache Digests in Rails 3
    • Thread-safe by default
      • Concurrency in Ruby
      • MRI 1.8
      • MRI 1.9
      • MRI 2.0
      • How does it work?
      • Writing Thread-Safe Code
      • Thread Safety in your web app
    • Live Streaming
      • How does it work?
      • What can we do with Live Streaming?
    • Encrypted Cookies
      • How to upgrade
    • Routing Concerns
      • How does it work?
      • Using Routing Concerns in Rails 3
    • Strong Parameters
      • Rails 4 Changes
      • strong_parameters methods
      • Using strong_parameters in Rails 3
    • Default Headers
    • Postgres H-Store Support
      • How does it work?
      • H-Store in Rails 3
    • Active Model Absence Validator
      • How does it work?
    • Schema Cache Dump
      • How does it work?
    • Active Record Additions
      • Null Object Pattern
      • destroy!
      • update_columns
      • Default ordering added to first
      • Multiple columns with Pluck
      • IdentityMap Removed
    • Collection Form Helpers
      • How does it work?
    • ActiveModel::Model
      • How to upgrade
    • The HTTP Patch Verb
      • Rails 4 Changes
    • New Default Test Locations
    • Active Record Not Equal Support
    • Custom Flash Types
      • How does it work?
    • HTML5 Form Input Helpers
      • week_field
      • date_field
      • month_field
      • time_field
      • datetime_field and datetime_local_field
      • color_field
  • Changes and Deprecated Features
    • Dynamic Index Page
    • Page Caching
      • Why it was removed
      • How to upgrade
    • Action Caching
      • Why it was removed
      • How to upgrade
    • Observers and Sweepers
      • Action Controller Sweeper
      • Active Record Observer
      • Why it was removed
      • How to upgrade
    • Active Record Session Store
      • Why it was removed
      • How to upgrade
    • Sprockets
      • Why it was removed
    • Renaming _filter callback to _action callback
      • How to upgrade
    • No more vendor/plugins
      • How to upgrade
    • Deprecated Active Record finders
      • How to upgrade
    • Active Resource
      • Why it was removed
      • How to upgrade
    • Rails 4 requires Ruby 1.9 or higher
      • Why is was removed
      • How to upgrade
    • XML Parameter Parsing
      • How to upgrade
      • Why it was removed
    • Performance Tests
      • How to upgrade
    • Install binstubs by default
      • How does it work?
  • Upgrade Checklist
  • What got scrapped
    • Background Queuing
      • How it works
      • How to upgrade
    • Asynchronous Action Mailer
      • How it works
  • Closing Thoughts
  • Change log
      • May 20, 2013
      • September 22, 2013

Last updated

This Book is for Sale Through Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed books like this one.



Leanpub has a wide selection of in-progress and completed books available to browse, purchase, and enjoy.

Browse the Bookstore


Leanpub is free for authors and publishers to use. We pay authors or publishers 90% royalties minus 50 cents per sale.

Write a Book