can't load hpricot gem in rails 3

This is in windows ..

So from irb, I can load hpricot ok. (ruby 1.8.7)

C:\Users\Laurence\rails-play\plug-test>irb irb(main):001:0> require 'hpricot' LoadError: no such file to load -- hpricot         from (irb):1:in `require'         from (irb):1 irb(main):002:0> require 'rubygems' => true irb(main):003:0> require 'hpricot' => true irb(main):004:0> quit

but from the rails console I seem to not be able to:

C:\Users\Laurence\rails-play\plug-test>rails console Loading development environment (Rails 3.0.5) irb(main):001:0> irb(main):002:0* require 'rubygems' => nil irb(main):003:0> require 'hpricot' LoadError: no such file to load -- hpricot         from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.5/lib/ active_su pport/dependencies.rb:239:in `require'         from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.5/lib/ active_su pport/dependencies.rb:239:in `require'         from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.5/lib/ active_su pport/dependencies.rb:225:in `load_dependency'         from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.5/lib/ active_su pport/dependencies.rb:596:in `new_constants_in'         from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.5/lib/ active_su pport/dependencies.rb:225:in `load_dependency'         from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.5/lib/ active_su pport/dependencies.rb:239:in `require'         from (irb):3 irb(main):004:0> irb(main):005:0* irb(main):006:0* quit

C:\Users\Laurence\rails-play\plug-test> C:\Users\Laurence\rails-play\plug-test>gem list

*** LOCAL GEMS ***

abstract (1.0.0) actionmailer (3.0.5) actionpack (3.0.5) activemodel (3.0.5) activerecord (3.0.5) activeresource (3.0.5) activesupport (3.0.5) arel (2.0.9) builder (3.0.0, 2.1.2) bundler (1.0.10) commonwatir (1.8.0) erubis (2.6.6) firewatir (1.8.0) git (1.2.5) hoe (2.9.1) hpricot (0.8.4) i18n (0.5.0) jeweler (1.6.0) mail (2.2.15) mime-types (1.16) nokogiri (1.4.4.1 x86-mingw32) polyglot (0.3.1) rack (1.2.2) rack-mount (0.6.14) rack-test (0.5.7) rails (3.0.5) railties (3.0.5) rake (0.8.7) rubygems-update (1.6.2) rubyzip (0.9.4) s4t-utils (1.0.4) sqlite3 (1.3.3 x86-mingw32) sqlite3-ruby (1.3.3) thor (0.14.6) treetop (1.4.9) tzinfo (0.3.25) user-choices (1.1.6.1) watir (1.8.0) win32-api (1.4.8 x86-mingw32) win32-process (0.6.5) win32-sapi (0.1.6) windows-api (0.4.0) windows-pr (1.2.0) xml-simple (1.0.15)

Rails 3 applications uses Bundler, you need to indicate your hpricot dependency in your Gemfile.

Please read Rails Guides:

http://guides.rubyonrails.org/getting_started.html#installing-the-required-gems

And how bundler works:

http://gembundler.com/rationale.html

Please add "hpricot" to your Gemfile and then "bundle install" it.

HTH,