Rails foundationSort Order

Rails: Fixing Rails 5.2 Deprecations

After doing a major upgrade we usually have to upgrade our codebase to work with the new version of the APIs / Libraries from Rails because things do change. Having a test suite can be very handy in cases like this, it's extremely quick to find problems and resolve them.

Running Tests

We'll start by running tests using rake test this will reveal a couple of issues with our code.
  1. Replace the before_filter with before_action in the app/controllers/admin/base_controller.rb
  2. Add the gem 'record_tag_helper', '~> 1.0' to our Gemfile

Doing these 2 things should fix our application and our admin area should work again!