I am trying to return all groups created by a user. All of the groups are associated with the user id. When I run a find_by query it only returns the first result. Is there a way for it to return multiple?
Thanks in advance
I am trying to return all groups created by a user. All of the
Share
Change find_by to find_all_by and it will return all matching results.