Displaying 1 result from an estimated 1 matches for "singleladder".
2006 Mar 27
2
:through and STI
...:through and STI using the trunk version of Rails, but
I get the following error see bottom of this msg[1]
here are my classes.
class Player < ActiveRecord::Base
end
class Ladder < ActiveRecord::Base
has_many :subscriptions
has_many :players, :through => :subscriptions
end
class SingleLadder < Ladder
end
class Subscription < ActiveRecord::Base
belongs_to :players
belongs_to :ladders
end
Any ideas??
Jeroen
[1]
>> Ladder.find(:first).players
NameError:
./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependenci...