Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9d06b49913
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (23 sloc) 0.539 kb
<h1>Listing posts</h1>
<% @posts.each do |post| %>
<td><%= %></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, confirm: 'Are you sure?', method: :delete %></td>
<% end %>
<br />
<%= link_to 'New Post', new_post_path %>
Jump to Line
Something went wrong with that request. Please try again.