search for: thumb_url

Displaying 1 result from an estimated 1 matches for "thumb_url".

Did you mean: thumb_up
2007 Feb 16
0
displaying images from this controllers code
...timestamp) url << "&Url=" + source_url begin doc = open(url).read rescue puts "Could not access AWS" exit end m = doc.match(/\<aws:thumbnail[^\>]+exists=\"true\"\>(.+?)\<\//i) if m && m[1] thumb_url = m[1] thumb_url.gsub!(/\&amp;/, ''&'') File.open("#{source_url}.jpg", "w") { |f| f.write open(thumb_url).read } puts "Saved to #{source_url}.jpg" elsif m && m.match(/exists=\"false\"/) puts "No...