Skip to content

Instantly share code, notes, and snippets.

@brettchalupa
Created October 15, 2012 15:53
Show Gist options
  • Save brettchalupa/3893238 to your computer and use it in GitHub Desktop.
Save brettchalupa/3893238 to your computer and use it in GitHub Desktop.
Write BMO users to a txt file.
@users = User.all
File.open("user_list.txt", "w") do |file|
@users.each do |user|
file << user.id
file << " "
file << user.name
file << "\n"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment