title: Ruby csv: no rows found in single column import file
body: <p>I'm happily using the Ruby 1.9.3 CSV library to import CSV files (<a href="http://www.ruby-doc.org/stdlib-1.9.3/libdoc/csv/rdoc/index.html" rel="nofollow">csv/rdoc</a>)</p>
  
  <p>But when the file has only a single column, no data rows are found, even though it can find the header field.</p>
  
  <pre><code>require 'csv'
  csv = CSV.new(File.open(import_dir + "#{table}.csv"), :headers =&gt; true, :col_sep =&gt; ';')
  csv.each do |row|
  </code></pre>
  
  <p>each doesn't return any elements for a single column file. This code is working fine for all other files</p>
  
  <p>The file is simply:</p>
  
  <pre><code>name
  sample account
  </code></pre>
  
  <p>The code finds the header "name" but sees no data rows. I tried quoting the value and adding extra rows. If I add a second column before or after, the data rows can be seen.
  Any ideas?</p>