Sha256: 5eb801c76617a39983d6db1f31965ab086e6e110e37b1329de6033ed0b4ccffa

Contents?: true

Size: 545 Bytes

Versions: 4

Compression:

Stored size: 545 Bytes

Contents

<h1>Listing posts</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Content</th>
    <th>Slug</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @posts.each do |post| %>
  <tr>
    <td><%= post.title %></td>
    <td><%= post.content %></td>
    <td><%= post.slug %></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>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Post', new_post_path %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slug-engine-0.1.0 test/dummy/app/views/posts/index.html.erb
slug-engine-0.0.3 test/dummy/app/views/posts/index.html.erb
slug-engine-0.0.2 test/dummy/app/views/posts/index.html.erb
slug-engine-0.0.1 test/dummy/app/views/posts/index.html.erb