4 ms·
The current directory was removed from the LOAD_PATH, so you have to change "require 'mycode'" to "require './mycode'", or use require-relative, or add "." to L
by 6ren 14y ago
The current directory was removed from the LOAD_PATH, so you have to change "require 'mycode'" to "require './mycode'", or use require-relative, or add "." to LOAD_PATH yourself. It was changed for security issues apparently. http://stackoverflow.com/questions/2900370/why-does-ruby-1-9-2-remove-from-load-path-and-whats-the-alternative http://stackoverflow.com/questions/2900370/why-does-ruby-1-9...