From: Logan Capaldo Date: 2006-09-20T11:37:38+09:00 Subject: Re: Can not find superclass On Wed, Sep 20, 2006 at 11:27:47AM +0900, Yu Co wrote: > Paul Lutus wrote: > > Yu Co wrote: > > > > / ... > > > >> > >> Odd, isn't ? > > > > Not, it's not odd, it means that, because you put "require 'super'" at > > the > > top of the sub class file, the sub class found the super class, and you > > now > > have an new problem. The new problem is the absence of: > > > > require 'activerecord' > > > > at the top of the super class file. > > > > Before, the sub class couldn't find a definition for 'super'. Now super > > can't find a definition for 'activerecord'. > > > > Each Ruby source file that requires information from outside itself ... > > must > > say so. > > Many thanks for the response Paul, > after putting "require 'activerecord'" at the top of the super class I > have now a new error message > "{RUBY_HOME}/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require': no such file to load -- activeRecord > (LoadError)" > Do you know how to handle that? > It's require 'active_record' (Note the underscore). > > -- > Posted via http://www.ruby-forum.com/.