app/views/entries/index.html.erb
<h1>Listing entries</h1>
<table>
<tr>
<th>Title</th>
<th>Content</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @entries.each do |entry| %>
<tr>
<td><%= entry.title %></td>
<td><%= entry.content %></td>
<td><%= link_to 'Show', entry %></td>
<td><%= link_to 'Edit', edit_entry_path(entry) %></td>
<td><%= link_to 'Destroy', entry, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Entry', new_entry_path %>