我在用Rails应用程序从经典的自动加载程序切换到Zeitwerk时遇到了一些麻烦,它在Rails 3天里看到了曙光--所以这里有一些外壳。do |paths| config.eager_load_paths += pathseager_load_paths是Zeitwerk所必需的(根据Rails指南),但是Zeitwerk似乎不喜欢这个星座:Hold on, I am eager loadin
在使用Zeitwerk迁移到Rails 6的过程中,我得到了: Please, check the "Autoloading and Reloading Constants" guide for solutionsZeitwerk::NameError: wrong constant name Enforce-calls-to-come-from-aws inferred by Module from directory* Tell Zeitwerk to ignore one of its parent directo
我很好奇在使用zeitwerk进行自动加载的Rails6中,首选的命名空间代码应该是什么样子。users_controller.rb class UsersController render json: {} end def index end
end 根据https://weblog.rubyonrails.org/2019