我正在尝试将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