Skip to content

Instantly share code, notes, and snippets.

@tvladeck
Created August 1, 2013 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tvladeck/6134704 to your computer and use it in GitHub Desktop.
Save tvladeck/6134704 to your computer and use it in GitHub Desktop.
filepath = "#{Rails.root.join('tmp')}/new"
File.open(filepath, "wb") do |f|
f.write open(@account.logo.url).read
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment