title: Cannot Load Module with Require
body: <p>I have a module (cgi_helper.rb), a cgi that calls that module, and an html template. I get the following error:</p>
  
  <blockquote>
    <p>/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in <code>require': cannot load such file -- cgi_helper (LoadError)
            from     &gt;/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in</code>require'
            from lab4.cgi:8:in `'</p>
  </blockquote>
  
  <p>The Module: <a href="http://pastebin.com/YFj0rC8p" rel="nofollow">http://pastebin.com/YFj0rC8p</a></p>
  
  <p>The CGI: <a href="http://pastebin.com/xs5LiV2a" rel="nofollow">http://pastebin.com/xs5LiV2a</a></p>
  
  <p>I can't figure out why it can't find the module. It's executable and in the same dir as the cgi. Here is the erb template. </p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;
  &lt;th&gt;Number&lt;/th&gt;
  &lt;th&gt;Username&lt;/th&gt;
  &lt;th&gt;Passwd&lt;/th&gt;
  &lt;th&gt;UID&lt;/th&gt;
  &lt;th&gt;GID&lt;/th&gt;
  &lt;th&gt;Home Dir&lt;/th&gt;
  &lt;th&gt;Shell&lt;/th&gt;
  &lt;% students.each do |x| %&gt;
  &lt;% next if eachname[x].nil? %&gt;
  &lt;% s = Student.new(eachname[x].split(':')) %&gt;
  &lt;tr&gt;
  &lt;% columns.each do |c| %&gt;
  &lt;td&gt;&lt;%= s.send(c).to_s %&gt;&lt;/td&gt;
  &lt;% end %&gt;
  &lt;/tr&gt;
  &lt;% end %&gt;
  &lt;/table&gt;
  &lt;% finish = Time.now %&gt;
  &lt;h2&gt; Total Elapsed Time:&lt;%= (finish.to_f - start.to_f).to_s %&gt;&lt;/h2&gt;
  </code></pre>