.flex.justify-center %h1.text-3xl Listing entities .flex.justify-center.mt-10 %table.table-auto.border-separate %thead %tr %th Name %th Ha %th Type %th Member %th %th %th %tbody - @entities.each do |entity| %tr %td.p-2= entity.name %td.p-2= entity.ha_id %td.p-2= entity.type %td.p-2= entity.member.email %td.p-2= link_to 'Show', entity %td.p-2= link_to 'Edit', edit_entity_path(entity) %td.p-2= link_to 'Destroy', entity, method: :delete, data: { confirm: 'Are you sure?' } .flex.justify-center.mt-10 = link_to 'New Entity', new_entity_path