SystemStackError: stack level too deep
Reported by Jeannette | June 25th, 2008 @ 07:17 AM
Hi all,
I got this error on script/console is there any fix ? Below are print stack:
>> @p = Person.find(106)
=> #
>> @p.paper
=> [#, #, #, #.....]
>> @p.paper.size
=> 94
>> @p.paper.class
SystemStackError: stack level too deep
from /Users/jc/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:138:in `method_missing_without_paginate'
from /Users/jc/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:139:in `method_missing'
from (irb):3
my models associations:
Person
has_many :author
has_many :paper :through => :author
my environment:
ruby -v ==> ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-darwin9.2.2]
rails -v ==> Rails 2.1.0
gem -v ==> 1.0.1
just Successfully installed mislav-will_paginate-2.3.2
Many thanks,
Jeannette
Comments and changes to this ticket
-
Jeannette June 26th, 2008 @ 03:20 AM
FYI:
I have solved the problem by doing:
gem uninstall will_paginate
script/plugin remove will_paginate
and then gem install mislav-will_paginate -s http://gems.github.com
cheers
Jeannette
-
Mislav October 26th, 2008 @ 02:32 AM
- State changed from new to invalid
- Tag set to will_paginate
- Assigned user changed from Chris Wanstrath to Mislav
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป