从Rails 4.2升级到5.2后,“无法自动加载常量”

时间:2020-10-12 08:29:09

标签: ruby-on-rails ruby ruby-on-rails-4 ruby-on-rails-5 jruby

我正在尝试将Ruby版本从4.2升级到5.2,但是出现以下错误:

org.jruby.exceptions.RaiseException:(LoadError)无法自动加载 恒定的PaymentAccounts :: VersionsController,预期 /local/home/nndri/workplace/pcui-upgrade/src/PaymentContractUIWebsite/rails-root/app/controllers/payment_accounts/versions_controller.rb 定义它

apply
template <typename F>
void apply(F && f) {
   ...
   std::forward<F>(f)(std::get<0>(data_)->dptr_, getSize());
   ...
}

目录结构:

# development.rb
config.cache_classes = false
config.logger = Logger.new(STDOUT)
config.logger.level = Logger::DEBUG
config.eager_load_paths += Dir[Rails.root.join('app', 'models', '**/')]  
config.eager_load = false
  • 添加了有关目录的更多信息。

0 个答案:

没有答案