Skip to content

Instantly share code, notes, and snippets.

@kmelkon
Created July 23, 2013 12:14
Show Gist options
  • Save kmelkon/6061913 to your computer and use it in GitHub Desktop.
Save kmelkon/6061913 to your computer and use it in GitHub Desktop.
show partial
<% @posts.each do |post| %>
<tr>
<td><%= post.name %></td>
<td><%= post.title %></td>
<td><%= post.content %></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?' }, :remote => true, :class => 'delete_post' %></td>
</tr>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment