From: Kaye Ng Date: 2011-11-04T19:04:16+09:00 Subject: 'require' problem Hi guys! This file, testrequire.rb , has the following code: require 'string_extensions' puts "This is a test".vowels.join('-') This file, string_extensions.rb , has the following code: class String def vowels self.scan(/[aeiou]/i) end end --------------------------------------------------------------------- I run testrequire in Command Prompt, I get: :29:in `require': no such file to load -- string_extensions (LoadError) from :29:in `require' from O:/Ruby/Practice/testrequire.rb:1:in `
' Help please! Thanks =) -- Posted via http://www.ruby-forum.com/.