# Library Require

**URL:** <https://www.ruby-forum.com/t/library-require/87143>\
**Category:** Rails\
**Created:** [February 28, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/library-require/87143 "2007-02-28T14:40:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zukjimote](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/df705f/32.png) [@zukjimote](https://www.ruby-forum.com/u/zukjimote)\
**Post date:** [February 28, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/library-require/87143/1 "2007-02-28T14:40:57Z")

</div>

I want to use the library ‘rubyful\_soup’  
([Rubyful Soup: "The brush has got entangled in it!"](http://www.crummy.com/software/RubyfulSoup/))

Using ‘gem install rubyful\_soup’ command, I installed the library.  
The library is installed at /var/lib/gems/1.8/gems/.  
When I use the library with irb, I typed

_require ‘rubyful\_soup.rb’,_

but got an error message that ruby could not find such a file  
‘rubyful\_soup.rb’.  
So after googling, I found the solution. The solution was to insert the  
statement

require ‘rubygems’

before the statement

require ‘rubyful\_soup.rb’.

It works well with irb, but I get an error message when practically  
using with a controller class in a rails application.

Please help =)
