Ruby on rails stack level too deep -


consider following model:

class category < activerecord::base # nothing in model end >> rails c >> category.all # works fine 

but when below, throws error stack level deep:

>> category.order("updated_at desc") # should assume syntax right 

i having error after upgrading ruby 1.9.3 1.8.7 , rails 3.2.0 3.0.4. working fine before upgraded. there no code change @ all, versions upgraded.

however have project on machine old versions , i'm facing no error there.

apparently looks problem because of upgraded versions not sure, have read many threads on stackoverflow did not satisfactory answer.

please have spent considerable time on fixing issue no success.

try increase stack size ulimit command. maybe it's bit on small side.

http://dalibornasevic.com/posts/5-ruby-stack-level-too-deep-systemstackerror


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -