Listing posts

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