Sha256: 7f7189e23cbf91b3c695dd57e5e7cd16daf344e097390beb3c3478e4929ebc49

Contents?: true

Size: 679 Bytes

Versions: 5

Compression:

Stored size: 679 Bytes

Contents

<p id="notice"><%= notice %></p>

<h1>Listing Posts</h1>

<table>
  <thead>
    <tr>
      <th>Title</th>
      <th>Body</th>
      <th>Author</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <%= posts_path %>
    <% @posts.each do |post| %>
      <tr>
        <td><%= post.title %></td>
        <td><%= post.body %></td>
        <td><%= post.author %></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
rubybench_runner-0.1.4 lib/rubybench_runner/rails/benchmarks/views/posts/index.html.erb
rubybench_runner-0.1.3 lib/rubybench_runner/rails/benchmarks/views/posts/index.html.erb
rubybench_runner-0.1.2 lib/rubybench_runner/rails/benchmarks/views/posts/index.html.erb
rubybench_runner-0.1.1 lib/rubybench_runner/rails/benchmarks/views/posts/index.html.erb
rubybench_runner-0.1.0 lib/rubybench_runner/rails/benchmarks/views/posts/index.html.erb