#220 ✓resolved
iamjwc (at gmail)

has many :through causes "Stack level too deep error"

Reported by iamjwc (at gmail) | May 16th, 2008 @ 03:56 AM

class Program < AR::Base
  has_many :sessions, :through => :components
end

Program.find(:first).sessions # => [#<Session:...>, #<Session:...>]

Program.find(:first).sessions.first # throws SystemStackError "stack level too deep"

Stack Trace

RAILS_ROOT/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:92:in `method_missing_without_paginate'

RAILS_ROOT/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:93:in `method_missing'

Notes

Using Rails 2.1 RC 1

Comments and changes to this ticket

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.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Everyone's favorite Ruby library for pagination of practically anything!

Referenced by

Pages