Acts as Dead?
Been a while… So my blog was broken just now, not sure for how long. Not more than a month I think. The problem was in the acts_as_taggable plugin, which rumor has it is dead. For now I will still use it, and describe the fix in case it also is broken for you.
The problem is in the join table. The geniuses decided to make the join table <tag class><taggable class>. This is backwards from the regular has_and_belongs_to_many convention in activerecord. Somewhere, somehow, this backwardsness was reversed. I had it using it’s default join table before (tags_posts) and it broke as now it’s looking for poststags. So I add an option to the call:
acts_as_taggable :join_table => :tags_posts
I suppose I could have changed the table name, but at least this way it will never (hopefully) break again. I’m not quite sure how this default behavior changed in the first place.
Post a comment
Website and email are optional. Email will be displayeduser at example dot com.