# Config.gem 'hpricot' still wants require 'hpricot'

**URL:** <https://www.ruby-forum.com/t/config-gem-hpricot-still-wants-require-hpricot/192716>\
**Category:** Rails\
**Created:** [August 4, 2010, 1:25pm UTC](https://www.ruby-forum.com/t/config-gem-hpricot-still-wants-require-hpricot/192716 "2010-08-04T13:25:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [August 4, 2010, 1:25pm UTC](https://www.ruby-forum.com/t/config-gem-hpricot-still-wants-require-hpricot/192716/1 "2010-08-04T13:25:52Z")

</div>

Why do I need to add require ‘hpricot’ if I already have defined  
config.gem ‘hpricot’ in environment.rb?

The strange thing is that when I use script/console I can use Hpricot  
directly Oo
