New Ruby user and I am completely addicted, LOVE it...but...I have hit a roadblock right out of the gate Have read plenty on the Ruby basics/theory/etc Working my way through "Bastards" Ruby Lessons and I am getting error message when trying to use "rest-client" gem
I enter:
require "rubygems"
require "rest-client"
res = RestClient.get("http://en.wikipedia.org/wiki")
puts res.code
#=> 200
puts res.body
#=> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
#=> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
#=> <html lang="en" dir="ltr" class="client-nojs" xmlns="http://www.w3.org/1999/xhtml">
#=> <head> ...
And get:
LoadError: no such file to load — rest-client
method gem_original_require in custom_require.rb at line 36
method require in custom_require.rb at line 36
at top level in gem.rb at line 2
copy output
Program exited with code #1 after 0.06 seconds.
Im sure this is quite basic and feel somewhat embarrassed to ask for help but I have tried every place possible to find a fix
On a Mac OS10
Appreciate your help