Figured it out. TestCase is also defined by active record. It will probably
be easiest to just rename it from TestCase to something else.
On Fri, Sep 11, 2009 at 7:40 AM, James Englert wrote:
> Thats actually how I originally had it. I was playing around with
> pluralizing them as a last resort
Thats actually how I originally had it. I was playing around with
pluralizing them as a last resort and forgot to change them back. I get the
same error with:
class Comment < ActiveRecord::Base
belongs_to :test_case, :counter_cache => true
end
class TestCase < ActiveRecord::Base
has_many :tes
Singularize your model names: Comment & TestCase
-e
On Sep 10, 8:50 pm, James Englert wrote:
> My :counter_cache column isn't working properly.
>
> I wouldn't normally ask about a relatively trivial issue like this but I've
> been banging my head on this for a bit and haven't gotten anywhere. I
3 matches
Mail list logo