Updating rails to 2 2

It addresses many issues and dealing with performance, security and new features like Action Cable, Rails API, Turbolinks 3 and etc.

If you are using git, I recommend to create a new branch, e.g.: You may need to save your work before with git add/git commit or save away current changes for later use with git stash.In the application’s root folder, edit the Gemfile and change the rails version (in my case from 4.1.4 to 4.1.14): The last command will still show the old version.However, check whether all gems supporting, are up-to-date.To know more about Ruby on Rails web application development follow Agira Technologies.We still need to tell rbenv to use the new version. If you're experiencing failures, please revert to the old behaviour by setting: Capybara.configure do |config| config.match = :one config.exact_options = true config.ignore_hidden_elements = true config.visible_text_only = true end If you're migrating from Capybara 1.x, try: Capybara.configure do |config| config.match = :prefer_exact config.ignore_hidden_elements = false end Details here: bundle exec rspec -f d spec/requests/provisioningobjects_/home/provisioningengine/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.1.14/lib/active_support/dependencies.rb:247:in `require': cannot load such file -- test/unit/assertions (Load Error) from /home/provisioningengine/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-4.1.14/lib/active_support/dependencies.rb:247:in `block in require' The procedure might also work without the gem ‘minitest’.

Since I am running a productive rails server on the host, I do not want to change the global setting, so I am specifying an app-local version, which will be written into .ruby-version: [email protected] Engine:~/Provisioning Enginev0.5.15_testfolder$ gem install bundle Fetching: bundler-1.11.2(100%) Successfully installed bundler-1.11.2 Fetching: bundle-0.0.1(100%) Successfully installed bundle-0.0.1 Parsing documentation for bundler-1.11.2 Installing ri documentation for bundler-1.11.2 Parsing documentation for bundle-0.0.1 Installing ri documentation for bundle-0.0.1 Done installing documentation for bundler, bundle after 6 seconds 2 gems installed [email protected] Engine:~/Provisioning Enginev0.5.15_testfolder$ bundle install Fetching gem metadata from https://rubygems.org/........... In my case it was already installed, so I have not tried without.

After many open pull requests were left unmerged, Can Can Can was released.

It is a community driven effort to have a semi-official fork of Can Can.

DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. (called from _app_views_customers__sidebar_html_erb__545434719134816655_70018526941280 at /home/provisioningengine/Provisioning Enginev0.5.15_testfolder/app/views/customers/_erb:8) Okay, there is more work to be done.

Maybe I should have tried with ‘bundle install’ first, not with ‘bundle update’, which was updating many gems at once?

The upgrade went relatively smoothly, apart from an additional gem needed (‘test-unit’) and a test failure due to changes in the Rails Url helpers.