How to work with acts as taggable on

jaimeiniesta edited this page Dec 7, 2012 · 1 revision

If you're using acts-as-taggable-on on some of your models, you may find an error like this when trying to manage them from ActiveAdmin:

undefined method `tag_ids_contains' for #<MetaSearch::Searches::Post:0x007faa3d680b70>

To fix this, refer to the Preventing Extra Queries on Index Pages page to specify the attributes where you want MetaSearch on. Like this:

ActiveAdmin.register Post do
  filter :title
  filter :body