I’m trying to learn Ruby. A task I’m trying to do is download a file
the web and save it locally.
I’m looking at http://ruby.bastardsbook.com/chapters/io/ and trying to
implement the solution in the “Exercise: Copy Wikipedia’s front page to
file using block notation” section, but it’s not working for me. The
message I get is:
require': cannot load such file -- rest-client (LoadError) from /home/jhsu/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’
from test.rb:4:in `’
What am I missing? Would another approach be better?