RubyMine 7.0.1 Web Help

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 rootSource in the project view.

RubyMine suggests two ways of configuring load paths:

To define load paths via load path page of the project structure
  1. Open the Project Structure settings, and then click the Load Path page.
  2. In the Load Path page, click add.
  3. Locate the desired path in the Select Path dialog box.
5.0+
To define load paths via context menu of the Project tool window
  1. Right-click the desired directory in the Project Tool Window.
  2. On the context menu, point to Mark Directory As node.
  3. Choose Load Path.

    ruby_load_path

    The directory in question is marked with the source root icon rootSource.

To unmark a directory, choose Unmark directory as load path on the context menu. The directory is then denoted with regular folder icon folder.

See Also

Procedures:

Reference:

Web Resources: