From: Svin Svin Date: 2010-04-30T02:34:09+09:00 Subject: Ruby require local file problem I have two files foo.rb and test.rb in the same folder. test.rb ------------------------------------ puts RUBY_VERSION require 'foo' ------------------------------------ foo.rb ------------------------------------ module Foo PATTT = "2323" class Foo2 def f puts 'hello world' end end end puts 'eee' ------------------------------------ Running under NetBeans it's OK. But running test.rb through concole OR RubyMine fails with: C:\USERS\ADMIN>ruby C:\Users\Admin\Documents\NetBeansProjects\RubyApplication1\l ib\test.rb 1.9.1 C:/Users/Admin/Documents/NetBeansProjects/RubyApplication1/lib/test.rb:2:in `req uire': no such file to load -- foo (LoadError) from C:/Users/Admin/Documents/NetBeansProjects/RubyApplication1/lib/test .rb:2:in `
' -- Posted via http://www.ruby-forum.com/.