Sha256: 7a492103818a75a6753d5013f3b2a8846e48e0c7ca24c5a84ef2d9ff1122fdeb

Contents?: true

Size: 722 Bytes

Versions: 9

Compression:

Stored size: 722 Bytes

Contents

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

<h1>Posts</h1>

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

  <tbody>
    <% @posts.each do |post| %>
      <tr <%= live_record_destroyable(post) %>>
        <td <%= live_record_updatable(post, :title) %>><%= post.title %></td>
        <td <%= live_record_updatable(post, :content) %>><%= post.content %></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

9 entries across 9 versions & 1 rubygems

Version Path
live_record-1.0.2 spec/internal/app/views/posts/index.html.erb
live_record-1.0.1 spec/internal/app/views/posts/index.html.erb
live_record-1.0.0 spec/internal/app/views/posts/index.html.erb
live_record-0.3.6 spec/internal/app/views/posts/index.html.erb
live_record-0.3.4 spec/internal/app/views/posts/index.html.erb
live_record-0.3.3 spec/internal/app/views/posts/index.html.erb
live_record-0.3.2 spec/internal/app/views/posts/index.html.erb
live_record-0.3.1 spec/internal/app/views/posts/index.html.erb
live_record-0.3.0 spec/internal/app/views/posts/index.html.erb