When I try the FasterCSV gem on my application I get this error:
Please switch to Ruby 1.9\'s standard
CSV library. It\'s FasterCSV plus
support for Ruby 1.
See how I solved this problem!
require 'fastercsv'
require 'csv'
secrecy_levels_array = [['SUPERSECRET', 'Supersecret Data', "Tell No One"],
['SEMISECRET', 'Semisecret Data', 'Tell Some People'],
['UNSECRET', 'Unsecret Data', 'Tell Everyone']]
puts '\n'
secrecy_levels_array.each do |line|
puts line.to_csv
end