After upgrading to Rails 6.1, I'm getting following error:
undefined method `find_script_name' for nil:NilClass
In this case the route is being used is root_path
but getting this for many other routes too! routes.rb
is as following (tried like this after removing all other route definitions)
Rails.application.routes.draw do
root 'home#index'
end
Only relevant thing I found online is this commit. Anyone has idea what could be wrong?
I'm running on ruby 2.7.2