hi! i''m running a app in developer moder under fcgi. since the last rails versions pretty i get this error pretty often: superclass must be a Class (NilClass given) the weird thing is that its not reproducable at all. it just happens sometimes. anybody else got that problem? ciao! florian
hi florian! i have encountered the same problem. my workaround was to make sure that all files below the folder controller are prefix with _controller. but i still have trouble with "require" and mixins. sometimes rails simply forgets about the require keyword in controllers? yours, lars Am 18.01.2005 um 17:28 schrieb Florian Weber:> hi! > > i''m running a app in developer moder under fcgi. since the last rails > versions > pretty i get this error pretty often: > > superclass must be a Class (NilClass given) > > the weird thing is that its not reproducable at all. it just happens > sometimes. > > anybody else got that problem? > > ciao! > florian > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >-- "Stil ist die Fähigkeit, komplizierte Dinge einfach zu sagen - nicht umgekehrt." -- Cocteau, Jean
On Tue, Jan 18, 2005 at 08:05:52PM +0100, Lars Hoss wrote:> i have encountered the same problem. my workaround was to make sure > that all files below the folder controller are prefix with _controller. > but i still have trouble with "require" and mixins. sometimes rails > simply forgets about the require keyword in controllers? > > Am 18.01.2005 um 17:28 schrieb Florian Weber: > >i''m running a app in developer moder under fcgi. since the last rails > >versions > >pretty i get this error pretty often: > > > >superclass must be a Class (NilClass given) > > > >the weird thing is that its not reproducable at all. it just happens > >sometimes. > > > >anybody else got that problem?You want to replace "require" with "require_dependency". Though that''s just an aside. I''m not claiming that will fix your problem. marcel -- Marcel Molina Jr. <marcel-WRrfy3IlpWYdnm+yROfE0A@public.gmane.org>
On Tue, Jan 18, 2005 at 05:28:05PM +0100, Florian Weber wrote:> hi! > > i''m running a app in developer moder under fcgi. since the last rails > versions pretty i get this error pretty often: > > superclass must be a Class (NilClass given) > > the weird thing is that its not reproducable at all. it just happens > sometimes. > > anybody else got that problem?Yep, although I had it consistently. It happened on each request after the first request, so I think it''s something with the reloading of dependencies. However, it seems fine now from Rails 0.9.4 onward, so I assumed it was fixed. -- Marten Veldthuis