On May 25, 6:02 pm, Jedrin <[email protected]> wrote: > 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/
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, -- Luis Lavena -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

