Read more

How to debug issues with zeitwerk and Rails

Emanuel
June 20, 2022Software engineer at makandra GmbH

In case you have trouble with the zeitwerk autoloader, you can check out the documentation Autoloading and Reloading Constants Show archive.org snapshot and Classic to Zeitwerk HOWTO Show archive.org snapshot for some debugging hints.

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

For myself it was useful to print the registered constants and the file references during the boot. Therefore you need to add Rails.autoloaders.log! at the end of your config/application.rb file. You could also run bin/rails zeitwerk:check for a more generic check.

Posted by Emanuel to makandra dev (2022-06-20 18:18)