# Re: Can not find superclass

**URL:** <https://www.ruby-forum.com/t/re-can-not-find-superclass/69391>\
**Category:** Ruby\
**Created:** [September 20, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/re-can-not-find-superclass/69391 "2006-09-20T18:57:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phrogz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/2acd7d/32.png) [@phrogz](https://www.ruby-forum.com/u/phrogz)\
**Post date:** [September 20, 2006, 6:57pm UTC](https://www.ruby-forum.com/t/re-can-not-find-superclass/69391/1 "2006-09-20T18:57:13Z")

</div>

> After compiling ‘Sub’ I get the following error message  
> “uninitialized  
> constant Super (NameError)”

I believe your problem is that, for each request, rails only loads the  
appropriate controller files. You need to put a ‘require’ or ‘load’ (or  
some rails-specific require command) in your second file to ensure that  
the controller file that you define Super in is being loaded (causing  
Super to be defined) before you attempt to use it.
