From: Paul Lutus Date: 2006-09-20T10:10:05+09:00 Subject: Re: Can not find superclass Yu Co wrote: > Hi all, > > I've the following: > I defined two classes 'Super' und 'Sub' in two separate files that look > like this: > > class Super < ActiveRecord::Base > end > > class Sub < Super > end > > After compiling 'Sub' I get the following error message "uninitialized > constant Super (NameError)" > Ruby doesn't consider 'Super' as a class but rather as a constant. Does > anyone know how I can avoid this? > > Thanks in advance. You haven't shown enough code. Does the Sub class file have this at the top: require 'super' -- Paul Lutus http://www.arachnoid.com