I'm in process of switching from classic autoloader to zeitwerk. And I've faced this problem:
NameError: uninitialized constant SomeHelper::Forms
I have a helper module SomeHelper in app/helpers/some_helper.rb which contains this code
module SomeHelper
extend Forms::DateTimePickerHelper
...rest code....
The Forms::DateTimePickerHelper module is located in app/helpers/forms/date_time_picker_helper.rb
My question is: how to correct the file structure or module names to make Zeitwerk good?
Found the cause, in
config/application.rbthese lines were addedremoving them solved the issue. Hope this helps someone!