Listing posts

<% @posts.each do |post| %> <% end %>
Title Content Slug
<%= post.title %> <%= post.content %> <%= post.slug %> <%= link_to 'Show', post %> <%= link_to 'Edit', edit_post_path(post) %> <%= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' } %>

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