Upgrade to Rails 4
$9.99
Minimum price
$17.00
Suggested price

Upgrade to Rails 4

A thorough guide for upgrading your Rails 3 app

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
Philip De Smedt

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.

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

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 earnedover $14 millionwriting, 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