title: Googlecharts gem - where do I put the require 'gchart'
body: <p>On the following page it says how to use the googlecharts gem</p>
  
  <p><a href="http://googlecharts.rubyforge.org/" rel="nofollow">http://googlecharts.rubyforge.org/</a></p>
  
  <p>It has a line that says</p>
  
  <pre><code>require 'gchart'
  </code></pre>
  
  <p>Where do I put this? In the gemfile or the controller?</p>
  
  <p>EDIT:
  In my view file I have:</p>
  
  <pre><code>&lt;%
  require 'gchart'
  Gchart.line(:size =&gt; '200x300', 
          :title =&gt; "example title",
          :bg =&gt; 'efefef',
          :legend =&gt; ['first data set label', 'second data set label'],
          :data =&gt; [10, 30, 120, 45, 72]) 
  %&gt;
  </code></pre>
  
  <p>But the above does not display an image</p>
  
  <p>EDIT 2:
  The chart is now working, here is the code I used</p>
  
  <pre><code>&lt;% require 'gchart' %&gt;
  
  &lt;img src="&lt;%=Gchart.line(:data =&gt; [0, 40, 10, 70, 20])%&gt;"/&gt;
  </code></pre>