Sha256: 8e9a7a6ba2752a17efe3eadcbc68ce61096a2906fb323519cb3e286a8561694a

Contents?: true

Size: 655 Bytes

Versions: 33

Compression:

Stored size: 655 Bytes

Contents

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

<h1>Listing Posts</h1>

<table>
  <thead>
    <tr>
      <th>Content</th>
      <th>Author</th>
      <th colspan="3">Actions</th>
    </tr>
  </thead>

  <tbody>

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

33 entries across 33 versions & 1 rubygems

Version Path
g5_authenticatable-1.1.4 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.4.rc.3 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.4.rc.2 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.4.rc.1 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.2 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.2.pre.1 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.2.rc.5 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.2.rc.4 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.2.rc.3 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.2.rc.2 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.2.rc.1 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.1 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.1.0 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.0.0 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.0.0.pre.4 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.0.0.pre.3 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.0.0.pre.2 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-1.0.0.pre.1 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.9.1.pre.2 spec/dummy/app/views/posts/index.html.erb
g5_authenticatable-0.8.1.pre spec/dummy/app/views/posts/index.html.erb