Skip to content

Instantly share code, notes, and snippets.

@chancancode
Last active March 5, 2020 15:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chancancode/7781341 to your computer and use it in GitHub Desktop.
Save chancancode/7781341 to your computer and use it in GitHub Desktop.
Rails 4.1 upgrade notes

References:

http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html

http://edgeguides.rubyonrails.org/4_1_release_notes.html

http://edgeapi.rubyonrails.org/

Gemfile

gem 'rails', github: 'rails/rails'
gem 'arel', github: 'rails/arel'

To help find deprecations

ActiveSupport::Deprecation.behavior = :raise

Know issues

  1. jquery-rails

    Bug: rails/jquery-rails#143

    Work around:

    gem 'jquery-rails', github: 'takkanm/jquery-rails', branch:' fix_action_view_require'
  2. rspec

    You need a pre-release version to work with Rails master (credit: @kalv)

    gem 'rspec-rails', '~> 3.0.0.beta'
  3. I18n warnning

    [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
    

    Work around:

    gem 'i18n', '>= 0.6.9'
    # config/application.rb
    config.i18n.enforce_available_locales = true
    # If you set a default_locale, you must do it after here:
    # config.i18n.default_locale = :de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment