As of Rails 2.3, what\'s the right way to add a directory to the load path so that it hooks into Rails\' auto-reloading mechanisms?
The specific example I\'m thinkin
In config/application.rb add config.autoload_paths << "#{config.root}/models/widgets".
config/application.rb
config.autoload_paths << "#{config.root}/models/widgets"
File should look like this:
module MyApp class Application < Rails::Application config.autoload_paths << "#{config.root}/models/widgets" end end
I know this works for Rails 4 and 5. Probably others as well.