User < ActiveRecord::Base has_many :groups
Group < ActiveRecord::Base belongs_to :user
I'm trying do do a look up to see if a particular user is already part of a group.
Use the user has_many groups association to check if a user has any groups.
user = User.find_by_email(email) user.groups.blank?
Aaron