There are lots of "has\_many" rails questions on stack overflow, but nothing that has been what I need. I have three models: Users, OrganizationUsers, and Organizations. They look like this: 

```
class User < ActiveRecord::Base
  has_many :organization_users #the model relating User and Organization
  has_many :organizations, through: :organization_users

```

And 

```
class Organization < ActiveRecord::Base
  has_many :organization_users
  has_many :users, through: :organization_users
end

```

And 

```
class OrganizationUser < ActiveRecord::Base
  belongs_to :user
  belongs_to :organization
end

```

What I am trying to do with a great amount of frustration is to only display users to current user if they are an admin AND the admin's organization matches the user's organization. So I will give an example of what I tried that did not work to give you the idea (from users\_controller.rb):

```
admin_users << User.where(current_user.organizations.all.include? :organization )

```

Obviously this is not working, but I think it shows what I am trying to do. Adding to the complications is the fact that **I would really like to use paginate**, which apparently does not like taking a strait up array as a parameter so I was hoping to do this purely with filters if possible. 

Thanks in advance.