I defined a User
Model and a Message
Model:
with User:
has many: messages
and Message:
belongs_to: user
I know how to get the users Messages:
@users = User.all
@users.messages
But how can i get all Users
that have Messages and all Users that dont have Messages? Thanks