Listing posts

<% for post in @posts %> <% end %>
Title Slug Body Status Created at Updated at Allow comments
<%=h post.title %> <%=h post.slug %> <%=h post.body %> <%=h post.status %> <%=h post.created_at %> <%=h post.updated_at %> <%=h post.allow_comments %> <%= 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 %>