I execute for instance:
gem list
and I get this:
abstract (1.0.0)
actionmailer (3.2.1, 3.1.3, 3.1.1, 3.0.5)
actionpack (3.2.1, 3.1.3, 3.1.1, 3.0.5)
activemodel (3.2.1, 3.1.3, 3.1.1, 3.0.5)
(...)
uglifier (1.2.3, 1.2.2, 1.1.0, 1.0.3)
webrat (0.7.3)
xpath (0.1.4)
Them if I try with
irb --simple-prompt
>> require 'webrat'
I get
LoadError: no such file to load -- webrat
from (irb):1:in `require'
from (irb):1
from :0
And this happens with every Gem on the list. What’s wrong? I’m using Ubuntu 11.10. Sorry if this is dumb, but I got stuck.
You need to require rubygems before you can require any gems. You can do this in irb:
or when starting irb up: