Y
Yu Co
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.
Regards,
yussibaer
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.
Regards,
yussibaer