require 'csv'
require 'open-uri'
csv_text = open('http://www.vvv.hh.yyy.ggg/~hhhh/uuuu.csv')
csv = CSV.parse(csv_text, :headers=>true)
csv.each do |row|
puts row
end
Created
November 3, 2014 14:24
-
-
Save wrburgess/ea0869979accad8172d3 to your computer and use it in GitHub Desktop.
Import and parse remote csv with Rails
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the way to read CSV file in SFTP server?