<p id="notice"><%= notice %></p>

<h1>Listing Posts</h1>

<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Body</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @posts.each do |post| %>
      <tr>
        <td><%= post.title %></td>
        <td><%= post.body %></td>
        <td><%= link_to 'Show', post %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Post', new_post_path %>

<p id="notice"><%= notice %></p>

<% @posts.each do |post| %>
  <div>
    <h3><%= link_to "#{post.title}", post %></h3>
    <p><%= post.body %></p>
  </div>
<% end %>
<br>

<%= link_to 'New Post', new_post_path %>

Remove table index page for a simpler list of posts
Remove table index page for a simpler list of posts
