Listing entities

<% @entities.each do |entity| %> <% end %>
Name
<%= entity.name %> <%= link_to 'Show', entity %> <%= link_to 'Edit', edit_entity_path(entity) %> <%= link_to 'Destroy', entity, method: :delete, data: { confirm: 'Are you sure?' } %>

<%= link_to 'New Entity', new_entity_path %>