Rails: Stack level too deep error

社会主义新天地 提交于 2019-12-05 09:29:37

The rd_searchlogic gem was the source of the issue. http://kiranb.scripts.mit.edu/blog/?p=247 talks about the issue. "Any named scope Searchlogic creates is dynamic and created via method_missing. And because Rails 3.1 changed around activerecord so much, Searchlogic calls a missing method on activerecord, which then gets rerouted to searchlogic."

I decided to switch to meta_where, only to learn that it's not supported from Rails 3.1 onwards. I'm running Rails 3.2.8. Squeel is the replacement, and works great on Rails 3.2.8: https://github.com/ernie/squeel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!