The load path is the path where require and
load statements will look for files. The specified paths will be used in
code completion for require
and load. If the load path is not defined,
code completion will suggest only the paths relative to the project root.
A directory that belongs to the load path is marked as the source root directory in the project view.
RubyMine suggests two ways of configuring load paths:
- Right-click the desired directory in the Project Tool Window.
- On the context menu, point to Mark Directory As node.
- Choose Load Path.
The directory in question is marked with the source root icon .
To unmark a directory, choose .
on the context menu.
The directory is then denoted with regular folder icon