rails adding directory to load path code example
Example: rails adding directory to load path
# In Rails 5 you don't have to explicitly load folders from within the app directory anymore. All folders placed inside are directly available. You don't have to touch any of the config files. But it seems as if there are some issues with Spring.
# The new workflow therefore is:
# create a new folder and class inside the /app directory
#on the command line run
spring stop
# check the autoload-paths with
bin/rails r 'puts ActiveSupport::Dependencies.autoload_paths' on the command line. The new folder should now be listed.
# on the command line run
spring start