From: "Elliot M." Date: 2013-06-03T13:25:10+09:00 Subject: 'require' is not loading files I am new to ruby and have been teaching it to myself for the past so I am still very new to Ruby. I have been trying to load external source-code files into my program but for some reason every time I try use require to load a file it does not work and I get this message LoadError: cannot load such file -- b from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from (irb):3 from /usr/local/bin/irb:12:in `
' irb(main):004:0> require For example I create a file named a.rb and then in another program I try to load it with require 'a' but I always get this message. When I use load 'a.rb' it loads the file with no problem but I can not figure out why require '' will not load the files into the program. Like I said I am very new to Ruby so any help is appreciated. -- Posted via http://www.ruby-forum.com/.