tags:

views:

424

answers:

2
+3  Q: 

Shoes and Gems

Code:

Shoes.setup do
  gem 'mechanize'
end

require 'rubygems'
require 'mechanize'

Running Shoes on it says:

no such file to load -- mechanize

Thank you.

+1  A: 

rubygems needs to be required before any gems.

require 'rubygems'
require 'mechanize'

Shoes.setup do
  gem 'mechanize'
end
Squeegy
Maybe its a shoes thing. I am unfamiliar with Shoes. Sorry :(
Squeegy
+4  A: 

I did:

sudo gem install mechanize

and the following seems to be working:

Shoes.setup do
  gem 'mechanize'
end

require 'mechanize'

It says 'Building native extensions' and is taking forever, but seems to be the norm according to hackety.org.

marktucks