This project is archived and is in readonly mode.
Stack Error in method missing
-
jshumate
I replaced the call to id on line 245 with readattribute('id') and have not been able to get it to fail since. Not sure why id would become undefined during operation, but apparently it is and infinite loops on methodmissing.
If someone with more knowledge could point me at a debugging technique that would get to the bottom of why this happens I am happy to try.
-
jshumate
With further digging this appears to be a symptom of the caching of objects on the second load during development that has been reported elsewhere.
-
jfoxny
I too am having this problem with Rails 2.1 in connection with using rails engines.
The fix that you described worked for me in most cases, however, today I've come across a new case now where, with the hack in-place, I receive a method missing error on a 2nd request a page. If I remove the hack, I receive the stack-overflow error that you described above.
The method that I'm receiving the error on is in a brand new class (not an override of a class in the engine that I'm using). The new class does, however, reference classes that I've extended from the engine.
I have not dug into this yet, but thought that it might be useful to mention.
-
Roger
See also http://dev.rubyonrails.org/ticke... I get this as well--engines + 2.1 Thanks! -=R
-
Pratik
- State changed from new to invalid
Is this still a problem ? I'll reopen if it is. Also, it'd be great if you could submit a failing test or a fix ! http://guides.rails.info/contrib... should help :)
Thanks.
-
btelles
Yes! I'm still encountering this problem!
mmmm...I'll try to submit a failing something over the weekend. -
Deleted User
- Tag changed from 2.1, activerecord, edge to 2.1, 2.3.4, activerecord, edge
Same issue here with Rails and AR 2.3.4.