Skip to content

Instantly share code, notes, and snippets.

View visnupriya's full-sized avatar

Visnupriya visnupriya

  • Spritle Software
  • Chennai
View GitHub Profile
@wrburgess
wrburgess / import_and_parse_remote_csv_rails.md
Created November 3, 2014 14:24
Import and parse remote csv with Rails
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