Ruby programmers are really lazy geeks:
require 'rubygems' require 'rio' rio("http://www.remote.com/file.jpg") > rio("#{RAILS_ROOT}/public/images/")
Ruby programmers are really lazy geeks:
require 'rubygems' require 'rio' rio("http://www.remote.com/file.jpg") > rio("#{RAILS_ROOT}/public/images/")
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.