Infinite loop in will_paginate with has_many :through
-
Nate Wiger
CORRECTION: I was mistaken. Leaving off the :include does not affect the problem in any way.
-
Mislav
- State changed from new to open
- Assigned user changed from Chris Wanstrath to Mislav
See #215 and #220. Are you using older version of will_paginate? The newest version is "mislav-will_paginate" 2.3.2 from http://gems.github.com/
-
Nate Wiger
- Tag set to bug, will_paginate
I just double-checked, and we are using the latest 2.3.2 from github. This issue is still occurring. If you follow the example above, you should be able to reproduce it. Please let me know if I can provide more help.
Thanks,
Nate -
Sidu Ponnappa
Confirming this bug for any collection actions (each, select, collect, detect...) for a has many through collection.
SystemStackError: stack level too deep
/trunk/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:164:in `method_missing_without_paginate'
/trunk/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:164:in `method_missing'
-
vamsee
Actually, this problem went away after I updated to mislav-will_paginate. Sidu, I suggest you try the same.
-
Mislav
Nate Wiger: are you using any plugins that hook into ActiveRecord?
-
David Eisinger
I was experiencing this behavior. Upgrading my app from 2.0.2 to 2.1.0 fixed it for me.
-
FotoVerite
- Tag changed from bug, will_paginate to bug, will_paginate
Experiencing this also. Using ActiveScaffold so that's probably where the bug is. Why it's even being called for an create method is beyond me though.
-
Mislav
- State changed from open to hold
I have tried to reproduce several of these failures (tests in commit de98ac9), but without success. I tested with Rails versions 1.2.6, 2.0.4 and 2.1.0.
This led me to believe that you guys are experiencing issues because of 3rd party plugins that mix into ActiveRecord obtrusively.
So, in the next reports I expect you to paste me a list of libraries/plugins you're using. Also make sure that you're on the latest version of "mislav-will_paginate" before submitting a comment.
Thanks
-
Mislav
- State changed from hold to resolved
(from [6d35492963eb2e8fb6683120112cb65afaae513d]) fix
firstfor paginated AR RelationsFixes #223 Infinite loop in will_paginate with has_many :through
https://github.com/mislav/will_paginate/commit/6d35492963eb2e8fb668...
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.