简体   繁体   English

NameError(未初始化的常量 ActiveSupport::ParameterFilter):如何修复

[英]NameError (uninitialized constant ActiveSupport::ParameterFilter): How to fix

I made Comment function in my app.我在我的应用程序中发表了评论 function。

And I uploaded this to github.我将此上传到 github。

then I didn't upload vendor(ignore vendor) and git rm --chached -r vendor/bundle2.然后我没有上传供应商(忽略供应商)和 git rm --chached -r vendor/bundle2。

Maybe I did that, I can't see Post view in my app.也许我这样做了,我在我的应用程序中看不到帖子视图。

error is (in browser)错误是(在浏览器中)

NameError in PostsController#index
uninitialized constant ActiveSupport::ParameterFilter
Extracted source (around line #80):
78  # If the constant was actually loaded, something else went wrong?
79  raise(e) if from_mod.const_defined?(const_name)
80  CoreExt::ActiveSupport.without_bootsnap_cache { super }
81  end
82
83  # Signature has changed a few times over the years; easiest to not

error log is错误日志是

NameError (uninitialized constant ActiveSupport::ParameterFilter):

vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:80:in `block in load_missing_constant'
vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active
.
.
.

to reference this article( https://github.com/aserafin/grape_logging/issues/66 ) but it won't work.参考这篇文章( https://github.com/aserafin/grape_logging/issues/66 ),但它不会工作。

Anyone knows this error?有人知道这个错误吗?

thank you for reading this.谢谢您阅读此篇。

After trying several solutions without success such as the one referenced ( https://github.com/aserafin/grape_logging/issues/66 ), I updated my rails version from 5.2.4.3 to 6.0.3 and it solved my problem.在尝试了几种解决方案但没有成功后,例如引用的一个( https://github.com/aserafin/grape_logging/issues/66 ),我将我的rails版本从5.2.4.3更新到6.0.3,它解决了我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未初始化的常量ActiveSupport :: Concern(NameError) - uninitialized constant ActiveSupport::Concern (NameError) 未初始化的常量ActiveSupport :: Dependencies :: Mutex(NameError) - Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError) Rspec / Rails:未初始化的常量ActiveSupport :: Autoload(NameError) - Rspec/Rails: uninitialized constant ActiveSupport::Autoload (NameError) 如何修复“NameError:未初始化的常量 Uglifier” - How to fix "NameError: uninitialized constant Uglifier" 未初始化的常量ActiveSupport :: EventedFileUpdateChecker(NameError) - [learn-ruby-on-rails]教程 - uninitialized constant ActiveSupport::EventedFileUpdateChecker (NameError) - [learn-ruby-on-rails] Tutorial 如何解决“ NameError:未初始化的常量Thor :: Base”错误? - How to fix “NameError: uninitialized constant Thor::Base” error? 如何修复此错误 NameError: uninitialized constant AWS - How do I fix this error NameError: uninitialized constant AWS 未初始化的常量ActiveSupport :: Memoizable - uninitialized constant ActiveSupport::Memoizable 未初始化的常量ActiveSupport :: TestCase - uninitialized constant ActiveSupport::TestCase 未初始化的常量ActiveSupport ::关注 - uninitialized constant ActiveSupport::Concern
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM