gregbell/active_admin — Issue #779: undefined method `articles_pages_ids_eq' for #<MetaSearch::Searches::Page:0x00000105911ff8>
Author: cgunnels
Created: 2011-11-23 20:34:40+00:00
State: open

I get that error when I try to load my pages register controller. My models look like
```class Article < ActiveRecord::Base

has_and_belongs_to_many :pages

end```

```class Page < ActiveRecord::Base

has_and_belongs_to_many :articles

end```

My aa controller looks like:

```
ActiveAdmin.register Page do

filter :articles_pages_ids, :as => :select, :collection => proc {
user = Thread.current[:user]
( user.is?(:admin) ? Article.all : user.articles ) unless user.nil? #&& user.role.name != "admin"
}
filter :created_at

end
```

What am I doing wrong? How do I get this to work correctly?