Skip to content

Instantly share code, notes, and snippets.

/error.txt Secret

Created November 18, 2015 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/be4dd2960709c8615954 to your computer and use it in GitHub Desktop.
Save anonymous/be4dd2960709c8615954 to your computer and use it in GitHub Desktop.
Write array of arrays to TSV file
TypeError: no implicit conversion of String into Integer
product_urls = [["food", "citrus", "lemon"], ["food", "citrus", "lime"]]
# write to TSV file
CSV.open("#{product_category[0]}-#{product_category[1]}.csv", "w", "\t") do |csv|
product_urls.each do |pu|
csv << pu
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment