Listing posts

<% @posts.each do |post| %> <% end %>
Title
<%= post.title %> <%= 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 %>