#282 Upgrading to Rails 3.1

It is incredibly easy to upgrade to Rails 3.1, but if you want to take advantage of the asset pipeline you will need to put in some extra effort. Have no fear because I walk you through each of the necessary steps in this episode.

ifdefined?(Bundler)
# If you precompile assets before deploying to production, use this lineBundler.require *Rails.groups(:assets => %w(development test))
# If you want your assets lazily compiled in production, use this line# Bundler.require(:default, :assets, Rails.env)end# ...# Enable the asset pipeline
config.assets.enabled = true# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'