Listing posts

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

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