How can I download a file from a URL and save it in Rails?

I have a URL to an image which i want to save locally, so that I can use Paperclip to produce a thumbnail for my application. What’s the best way to download and save the image? (I looked into ruby file handling but did not come across anything.)

7 Answers
7

Leave a Comment