Listing blog posts

<% @posts.each do |post| %>

<%= post.title %>

<%= post.body %>

<%= link_to 'Show', post %> <%= link_to 'Edit', edit_post_path(post) %> <%= link_to 'Destroy', post, confirm: 'Are you sure?', method: :delete %>
<% end %>
<%= link_to 'New Post', new_post_path %>