Ruby: Simple way to download a file

Ruby programmers are really lazy geeks:

require 'rubygems'
require 'rio'

rio("http://www.remote.com/file.jpg") > rio("#{RAILS_ROOT}/public/images/")

Rio gem RDoc

Tags: , , , , , , , , ,

This is a nice tip. To get this to work for me I had to sudo gem install rio, and also put the complete path name.