Sha256: 885dd5ba0ef0d34a9a21dd11cf4f77da94f600481b976108c062a86c2b825fba

Contents?: true

Size: 727 Bytes

Versions: 5

Compression:

Stored size: 727 Bytes

Contents

<h1>Listing posts</h1>

<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Content</th>
      <th>View count</th>
      <th>Author email</th>
      <th></th>
      <th></th>
      <th></th>
    </tr>
  </thead>

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

<br>

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
validation_sync-0.0.6 spec/dummy/app/views/posts/index.html.erb
validation_sync-0.0.5 spec/dummy/app/views/posts/index.html.erb
validation_sync-0.0.4 spec/dummy/app/views/posts/index.html.erb
validation_sync-0.0.3 spec/dummy/app/views/posts/index.html.erb
validation_sync-0.0.2 spec/dummy/app/views/posts/index.html.erb