Re: Can not find superclass

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs