Forum: Ruby on Rails Library Require

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B4fb445e36a296e392c008efccb40aa8?d=identicon&s=25 Yohan Jo (zukjimote)
on 2007-02-28 14:40
I want to use the library 'rubyful_soup'

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
So after googling, I found the solution. The solution was to insert the

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 =)
This topic is locked and can not be replied to.