On Mon, May 3, 2010 at 9:57 PM, Mike P. <li...@ruby-forum.com> wrote: > When I do this though, I get a 'const_missing' error coming from Active > Support. Here's the error: > > "......./lib/active_support/dependencies.rb:105:in `const_missing': > uninitialized constant ClassA::ModelA (NameError)" > > The 'ModelA' is the model I'm trying to access, and 'ClassA' is the > class in /app/lib/class_a.rb. I'm not sure why it seems to think that > ModelA is a part of ClassA, perhaps that's the problem?
Shouldn't it be in {Rails.root}/lib/class_a.rb rather than {Rails.root}/app/lib/class_a.rb ???? -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.