Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> require 'csv'
- => []
- >> CSV.open("variables.csv", "w") do |csv|
- ?> Variable.find(:all).each do |v|
- ?> csv << [ v.name, v.category.name, v.detail.name, v.sources.join(", "), v.years.join(", ") ]
- >> end
- >> end
Add Comment
Please, Sign In to add comment