Forum: Ruby on Rails HABTM destroy works in console, not in web browser.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
98f7f49eca94a17d8ac4c61ee5700249?d=identicon&s=25 Bryan Corey (mrpunkin)
on 2006-05-19 01:41
In console I can set image = Image.find(id) and then do image.destroy
and it works fine. It even cleans up the HABTM relationships thanks to a
before_destroy method. The problem is though that when I try and do the
same thing in my web browser, either in my view or via the URL scheme of
/controller/destroy/id it gives me a "stack level too deep" error.
Anybody know why it would work flawlessly in console, but not work via
my destroy action? I tried removing all code from my destroy action in
the controller so that it was just the find, and then the destroy method
but still get the error. Thanks ahead of time.
98f7f49eca94a17d8ac4c61ee5700249?d=identicon&s=25 Bryan Corey (mrpunkin)
on 2006-05-19 17:03
No body knows anything?
This topic is locked and can not be replied to.