Anthony Ob wrote:
Here is the error:
<internal"lib/rubygems/custom_require>:29:in 'require': no such file to
load --
p030motorcycle (LoadError)
from <internal:lib/rubygems/custom_require>:29:in 'require'
from p031motorcycletest.rb:2:in '<main>'
This means: ruby could not find any file called p030motorcycletest.rb in
any of the directories listed in your $LOAD_PATH.
Try "puts $LOAD_PATH" to see the list of directories searched.
If you're on ruby 1.9, then you no longer get the current directory in
the path. You could try require "./p030motorcycle", or I think 1.9 has
relative_require.
···
--
Posted via http://www.ruby-forum.com/\.