Upgrading to Rails 4 covers each change and guides you through the tweaks you'll need to make for a smooth upgrade.
Upgrading to Rails 4 covers the features you'll want to be aware of when modernizing existing applications.
Upgrading to Rails 4 covers specific scenarios you may encounter with upgrading and what to do when come across them.
.pdf, .epub, .mobi (DRM-free)
Read a free sample, including the table of contents.
Please purchase a team license to share the book with your coworkers.
find(:all))match may be affectedfind_all_by_...)ActiveRecord::Relation: #all, #includes, and #ordervalidates_format_oflib/ and vendor/ are no longer automatically precompiled
app/models/concerns and app/controllers/concernsattr_accessible and attr_protectedActionController::Live for live streamingbin/ and checked into source control (bin/rails and bin/rake)test/models, test/controllers, etc...)Upgrading to Rails 4 covers the major deprecations and new features in Rails 4.0.0.rc1. You will also receive updates (via email) as Rails 4.0.0 final nears.
If you purchase Upgrading to Rails 4 and are not satisfied, email me and I will issue you a refund.
Some chapters in the book use the rails4_upgrade gem, a free/open-source project I started to make certain elements of the upgrade process easier. Check it out and let me know what you think.
Thanks to these folks who are looking over the book's content for technical accuracy and overall flow:
bin/, Rails 4 no longer uses the
:assets group in Gemfile, encrypted cookies have
changed slightly since 4.0.0.beta1, dalli is
required to use memcached.
rails test command,
strong_parameters can raise an exception in
development mode, validates_confirmation_of adds
error messages to the _confirmation field.
I'm Andy Lindeman. My day job has me work with Rails on a daily basis. I also help to maintain rspec—a popular testing framework—and its Rails' helpers, rspec-rails.
I gave a widely viewed presentation for the Atlanta Ruby Users Group entitled Rails 4 Whirlwind Tour.
I'd love to hear from you. You can email me, follow me on Twitter, and watch me on GitHub.