Skip to content

Instantly share code, notes, and snippets.

@BioNuc
BioNuc / Upload image from url via Paperclip.rb
Created January 16, 2013 16:09
Upload image from url using Paperclip
# Basic Code
class Image
has_attached_file :attachment
def attachment_url(url)
require "open-uri"
self.attachment = open(url)
end
end