Stack level too deep error in Ruby on Rails

后端 未结 8 2070
再見小時候
再見小時候 2020-12-16 11:00

I\'m having a stack level too deep error using Ruby 1.8.7 with Rails 3.0.4 and with the rails console I performed the following commands.



        
8条回答
  •  盖世英雄少女心
    2020-12-16 11:34

    The stack level too deep error occurs also, if you want to destroy a record and you have an association with :dependent => :destroy to another model. If the other model has a association with :dependent => :destroy back to this model, the stack level is too deep, too.

提交回复
热议问题