Listing Posts

<% @posts.each do |post| %> <% end %>
Title Text
<%= post.title %> <%= post.text %> <%= link_to 'Show', action: :show, id: post.id %> <%= link_to 'Edit', action: :edit, id: post.id %> <%= link_to 'Destroy', { action: :destroy, id: post.id }, method: :delete, data: { confirm: 'Are you sure?' } %>