How to retrieve group owners? (Rails code question)

Thanks, this is definitely a step forward. My goal is to display the owners of a group under the group name on the group index page.

EDIT: For example, something like this:

<script type="text/x-handlebars" data-template-name="components/groups-info">
 {{#if showFullName}}
  <span class="groups-info-name">{{group.full_name}}</span>
  {{#each group.group_users as |gUser|}}
      {{#if gUser.owner}}
            <div>{{gUser.user.name}}</div>
      {{/if}}
  {{/each}}
{{else}}
  <span class="groups-info-name">{{group.displayName}}</span>
{{/if}}
</script>

This doesn’t quite work. What’s missing?

1 Like