Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<th>Created at</th>
<th colspan="3"></th>
<% @posts.each do |post| %>
<td><%= post.title %></td>
<td><%= post.body %></td>
<td><%= post.created_at %></td>
<td><%= link_to 'Show', post %></td>
<td><%= link_to 'Edit', edit_post_path(post) %></td>
<td><%= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' } %></td>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.