Listing comments

<% for comment in @comments %> <% end %>
Post Body User Status Created at Updated at
<%=h comment.post_id %> <%=h comment.body %> <%=h comment.user_id %> <%=h comment.status %> <%=h comment.created_at %> <%=h comment.updated_at %> <%= link_to 'Show', comment %> <%= link_to 'Edit', edit_comment_path(comment) %> <%= link_to 'Destroy', comment, :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New comment', new_comment_path %>