Library Require

require 'rubyful_soup'

You don't use the .rb extension in require statements -- ruby will figure out what kind of file to pull in (i.e., it could be a compiled .so file or a .bundle).

You also don't need to ask you question more than once. There a plenty of people who use the mailing list rather than the forum interface and will see your question no matter where you put it.


Rob Biedenharn

First, I'm really sorry for asking one question three times.
It is my mistake.

Thank you for your answer, but it also works well with irb but not with
the individual file of a controller class.

Can you post your error message? You can also try putting the require statement inside your config/environment.rb file.