Populate paperclip field from url
picture = URI.parse(url).open
Event.all.map{|e| e.logo = picture; e.save; e.logo.reprocess! }
Written by Thawan Fidelis
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#