<p id="notice"><%= notice %></p> <h1>Groups</h1> <table class="table"> <thead> <tr> <th>Name</th> <th>Members</th> <th>Events</th> <th colspan="2">Actions</th> </tr> </thead> <tbody> <% @groups.each do |group| %> <tr> <td><%= link_to group.name, group %></td> <td><%= link_to 'Edit', edit_group_path(group) %></td> <td><%= link_to 'Destroy', group, method: :delete, data: { confirm: 'Are you sure?' } %></td> </tr> <% end %> </tbody> </table> <br> <%= link_to 'New Group', new_group_path %>