views:

27

answers:

1

Hi there,

Is there a way to have something like this:

File.new('http://hostname/myfile.zip')

inside a controller?

Thanks in advance

+1  A: 
require 'open-uri'
file = open(URI.parse('http://www.google.com/intl/en_ALL/images/logo2.gif'))
puts file.size
=> 8558
vise