From: "charles a." Date: 2011-10-10T08:18:44+09:00 Subject: require -- looking in rubygems, now "." irb require "tr.rb" LoadError: no such file to load -- tr.rb from :29:in `require' from "29"in `require' from (irb):4 from C:/Ruby192/bin/irb:12:in `
' load "tr.rb" Hello world! => true File.exist? "tr.rb" => true APP_ROOT = File.dirname(__FILE__) => "." require "#{APP_ROOT}/tr.rb LoadError: no such file to load -- ./practice from.... (same stuff about ruby gems) Trying to get started learning ruby. From what little I can tell, I think Irb is only looking in rubygems instead of its own directory. How do I fix that? This is my first attempt to learn any sort of programming. Tyvm in advance for any help. -- Posted via http://www.ruby-forum.com/.