Guest User

Untitled

a guest
Apr 26th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. >> require 'csv'
  2. => []
  3. >> CSV.open("variables.csv", "w") do |csv|
  4. ?> Variable.find(:all).each do |v|
  5. ?> csv << [ v.name, v.category.name, v.detail.name, v.sources.join(", "), v.years.join(", ") ]
  6. >> end
  7. >> end
Add Comment
Please, Sign In to add comment