I keep getting this No such file or directory
error when trying to open a file. I'm doing:
file = open("http://farm7.static.flickr.com/6064/6090089285_242ca0e342_m.jpg")
according to the ruby-doc and keep getting such error.
What am I doing wrong?
You have to
require 'open-uri'
Without requiring 'open-uri', I got this exact error mesage in my irb: Errno::ENOENT: No such file or directory
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With