From: Yu Co Date: 2006-09-20T10:21:00+09:00 Subject: Re: Can not find superclass Paul Lutus wrote: > Yu Co wrote: > >> 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' That's all of the code I have. I have just two empty classes - one should be the subclass and the other the superclass. After writing "require 'super'" at the top of the 'sub'file I get "uninitialized constant ActiveRecord (NameError)" Odd, isn't ? -- Posted via http://www.ruby-forum.com/.