title: Is it possible to require a class in an erb template?
body: <p>I have an erb template in which I need to use:</p>
  
  <blockquote>
    <p>CGI.unescapeHTML(someEscapedHTML)</p>
  </blockquote>
  
  <p>So I need to require 'cgi', however the following fails:</p>
  
  <pre><code>&lt;% require 'cgi' %&gt;
  </code></pre>
  
  <p>With the error: </p>
  
  <blockquote>
    <p>can't dup NilClass</p>
  </blockquote>