How to retrieve group owners? (Rails code question)

How did you identify that serializer as being the right one for this case?

This is what I can gather: In the groups controller, in the index action, there is a render_json_dump function (or method) that includes the BasicGroupSerializer in the serialize_data call.

The relevant page for displaying groups data is the groups index, so the index action in the controller is the right one to look at here.

Is that how you know that the BasicGroupSerializer is the right one to reference here?

If that’s all correct, then would the GroupShowSerializer be used for when displaying the group show page, because that’s the serializer referenced in the show action in the controller? (the page with the details of a group–though there does not seem to be a “groups.show” view).

And then what about if there is no serializer referenced, such as in the new action in the controller?