0

I'm getting this error:

DEPRECATION WARNING: ActionView::Base instances should be constructed with a lookup context, assignments, and a controller. (called from <top (required)> at /Users/<me>/RubymineProjects/<myproject>/config/environment.rb:7)

That file only has these lines:

# frozen_string_literal: true

# Load the Rails application.
require_relative 'application'

# Initialize the Rails application.
Rails.application.initialize!

How do I find out where the issue is? I'm sure it's something stupid... This is a project that was migrated from Rails 4.2

Jan Gerritsen
  • 197
  • 2
  • 9
  • Have you searched your codebase for instances of ActionView::Base? This answer might help you on how to rectify this deprecation warning if you do have instances of ActionView::Base. https://stackoverflow.com/a/63865988/7485031 – Ali Ilman Jan 15 '21 at 03:29
  • I had seen that answer, but I have no "ActionView::Base" anywhere in my code. – Jan Gerritsen Jan 16 '21 at 04:09
  • When are you getting this? Every environment, or just test? Most likely error is thrown from some gem initializer, we'll need full error backtrace. – BroiSatse Jan 20 '21 at 15:26
  • I get this in any environment. Please tell me how to get that full error backtrace - this is happening in the dev environment with debug mode on already. – Jan Gerritsen Jan 21 '21 at 16:12

0 Answers0