You need to pass the file name, which should be on the server. right now you are transferring all the data. Do something like this
require 'open-uri' url = "http://de65.grepolis.com/data/csv.txt" url_data = open(url).read() File.open('/tmp/file_name', 'w') { |file| file.write(url_data) } SmarterCSV.process('/tmp/file_name',{ })
source share