create with has_many through association gets NoMethodError (undefined method `name' for nil:NilClass)

前端 未结 4 763
野性不改
野性不改 2020-12-10 12:28

I\'m doing this tutorial and am stuck in the Tagging part. Basically I have articles that can have a list of tags. As one article can has multiple tags and vice versa, there

4条回答
  •  星月不相逢
    2020-12-10 13:01

    I think there is a bug in activerecord 4.1.0 with has_cached_counter? and ruby 2.2. It was fixed on activerecord 4.1.2.

    I got it to work by switching rails versions from 4.1.0 to 4.1.2.

提交回复
热议问题