Skip to content

Instantly share code, notes, and snippets.

@mattreduce
Created April 17, 2010 23:43
Show Gist options
  • Save mattreduce/369907 to your computer and use it in GitHub Desktop.
Save mattreduce/369907 to your computer and use it in GitHub Desktop.
require 'csv'
File.open("output.html", 'w') do |output_file|
CSV.readlines("source.csv").each do |text, link|
output_file.puts "<a href='#{link}'>#{text}</a> \n"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment