Sha256: 37942bcc1cb798fe6e71380bc3fcd3bf51852f4d4ad176af43229d190fc0630a

Contents?: true

Size: 551 Bytes

Versions: 3

Compression:

Stored size: 551 Bytes

Contents

<h1>Listing posts</h1>

<table>
  <tr>
    <th>Author</th>
    <th>Content</th>
    <th>When</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

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

<br />

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

Version data entries

3 entries across 3 versions & 1 rubygems

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