Query problem

Hi all,

I have users (has many) accounts

I want to show all users and the account (if he has one) of a certain
type.

How can I query all users and if the user has a specific account, the
account. If I do :conditions => :accounts.type = ‘type’ I only get the
users with an account. I also want the users without an account.

Someone has an idea how to solve this?

Thanks
Stijn