Now that we have functionality for groups in place, we need a facility to allow our users to be able to find and join groups. After all, if users can't find groups then there isn't much point in them being there. This can be enabled through two methods:
To facilitate this, we will need a new model and a new controller: groups. This will manage the listing and searching of groups.
Let's look at how we can list public groups, and also list our own group memberships to make it possible to find groups and easily access groups we are members of.
We need to complete a method we referenced earlier in the chapter, to list public ...