title: Ruby 'require' error: cannot load such file
body: <p>I've one file, main.rb with the following content:</p>
  
  <pre><code>require "tokenizer.rb"
  </code></pre>
  
  <p>The tokenizer.rb file is in the <em>same directory</em> and its content is:</p>
  
  <pre><code>class Tokenizer
      def self.tokenize(string)
          return string.split(" ")
      end
  end
  </code></pre>
  
  <p>If i try to run main.rb I get the following error:</p>
  
  <pre><code>C:\Documents and Settings\my\src\folder&gt;ruby main.rb
  
  C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- tokenizer.rb (LoadError)
          from C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require '
          from main.rb:1:in `&lt;main&gt;'
  </code></pre>
  
  <p>I just noticed that if I use <code>load</code> instead of <code>require</code> everything works fine. What may the problem be here?</p>