title: convert csv file to table in ruby 1.9
body: <p>I am using the csv library within ruby 1.9, and trying to follow the example for a table shown here:</p>
  
  <p><a href="https://github.com/JEG2/faster_csv/blob/master/examples/csv_table.rb" rel="nofollow">Link to faster_csv on github</a></p>
  
  <p>My code is as follows:</p>
  
  <pre><code>&lt;% require 'csv' %&gt;
  &lt;% table = CSV.parse("public/assets/file.csv", :headers =&gt; true, :header_converters =&gt;   :symbol) %&gt;
  
   &lt;%= table %&gt;
  </code></pre>
  
  <p>But the above returns a blank screen where I am expecting it to show the file. </p>
  
  <p>Also when I try to view table[0].fields, I get the error</p>
  
  <pre><code>undefined method `fields' for nil:NilClass
  </code></pre>
  
  <p>The following works when reading a csv file however:</p>
  
  <pre><code>&lt;% b = CSV.read("public/assets/khq.csv") %&gt;
  &lt;%= b %&gt; 
  </code></pre>
  
  <p>Is there something I am doing incorrectly with the table example?</p>