Is there a way to have something like this:
File.开发者_如何学编程new('http://hostname/myfile.zip')
inside a controller?
require 'open-uri'
file = open(URI.parse('http://www.google.com/intl/en_ALL/images/logo2.gif'))
puts file.size
=> 8558
Is there a way to have something like this:
File.开发者_如何学编程new('http://hostname/myfile.zip')
inside a controller?
require 'open-uri'
file = open(URI.parse('http://www.google.com/intl/en_ALL/images/logo2.gif'))
puts file.size
=> 8558
上一篇:四面都是山山山都相连打一字?
长白山天池排队要多久?:下一篇
精彩评论