From: andrew@... Date: 2014-09-16T16:19:42+00:00 Subject: [ruby-core:65064] [ruby-trunk - Bug #10246] CSV.parse(csv_string, headers: col_headers) reports undefined method `table' Issue #10246 has been updated by Andrew Vit. Aloha Justin, Looks like the correct URL is here: http://www.railsonmaui.com/blog/2014/09/15/pry-ruby-array-zip-csv-and-the-hash-constructor/ The CSV headers option is working, I use it myself all the time. Is the problem that you're trying to parse an invalid CSV string? That's what it looks like in your blog post because you use it again further down after fixing the input and it's fine. ---------------------------------------- Bug #10246: CSV.parse(csv_string, headers: col_headers) reports undefined method `table' https://bugs.ruby-lang.org/issues/10246#change-48932 * Author: Justin Gordon * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.1.2 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- I've detailed repro steps here: http://railsonmaui-octopress.dev/blog/2014/09/15/pry-ruby-array-zip-csv-and-the-hash-constructor/ ~~~ [12] (pry) main: 0> csv = CSV.parse(csv_string, headers: col_headers) (pry) output error: #> ~~~ The CSV docs clearly state that the initialize method takes an option :headers -- https://bugs.ruby-lang.org/