Forum: Ruby on Rails Importing User Libraries into Rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Shak (Guest)
on 2009-02-11 21:07
(Received via mailing list)
Hi all,

I'm using Netbeans 6.5 to develop a Rails application.

I have already developed a small library to assist me in the app. It
is in another project/directory. What is the best way to load this
library in Rails?

I have added the following to the Rails application's environment.rb:

config.load_paths += %W(absolute/path/to/lib)

but this doesn't seem to work. Any clues?

Thanks!

Shak
This topic is locked and can not be replied to.