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): /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:195:in `const_missing' ...
on 2006-03-27 04:33
on 2006-03-27 06:54
Did you try require "models/a/folder" That's what I've been using for other pieces of my model. -Rob