I'm trying to follow the examples here: http://code.whytheluckystiff.net/hpricot/wiki/HpricotBasics However, I get "no such file to load -- hpricot" I also tried include_gem but I get "Could not find RubyGem hpricot (> 0.0.0)" Many thanks in advance
on 2007-03-02 05:21
on 2007-03-02 06:56
did you do this? gem install hpricot if so, require 'rubygems' require 'hpricot' should work fine.
on 2007-03-02 13:45
Yep. Installed the gem, did it all.
on 2007-03-02 13:57
firstname.lastname@example.org wrote: > Yep. Installed the gem, did it all. If you are doing this in Rails and you added the requires to environment.rb did you restart the server? -- Michael Wang
on 2007-03-04 01:12
I'm meant to put.. require 'rubygems' require 'hpricot' .. in my environment.rb?
on 2007-03-04 09:16
email@example.com wrote: > I'm meant to put.. > require 'rubygems' > require 'hpricot' > .. in my environment.rb? Sure. -- Michael Wang