Displaying 1 result from an estimated 1 matches for "ca729301".
Did you mean:
63729301
2006 Mar 27
1
accessing models from lib
Anyone tried to access the model class from a module in the lib
directory?
How should the require line look like?
I have class called A::Folder in app/models/a/folder.rb, and I was
trying
to include it in app/lib/common.rb by adding
require "a/folder"
But I am getting the following error:
NameError (uninitialized constant Folder):