title: FasterCSV: columns into an array -- rails
body: <p>I'm trying to get fastercsv setup so that rather than parsing each row, it will place each column into an multi array.</p>
  
  <pre><code>CSV import file:
  id, first name, last name, age
  1, joe, smith, 11
  2, jane, doe, 14
  
  Save to array named people:
  people[0][0] would equal id
  people[2][1] would equal jane
  </code></pre>
  
  <p>This is what I currently have:</p>
  
  <pre><code>url = 'http://url.com/file.csv'
  open(url) do |f|
    f.each_line do |line|
      FasterCSV.parse(line) do |row|
        row
      end
    end
  end
  </code></pre>
  
  <p>Any help is appreciated.</p>