From: Brian Candler Date: 2010-10-05T17:19:34+09:00 Subject: Re: "require" no such file to load Anthony Ob wrote: > Here is the error: > > :29:in 'require': no such file to > load -- > p030motorcycle (LoadError) > from :29:in 'require' > from p031motorcycletest.rb:2:in '
' 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/.