Sha256: e3460096637050ad255ba5f90d230423a248f1d3b32865746d61d8a85c2f9721
Contents?: true
Size: 837 Bytes
Versions: 3
Compression:
Stored size: 837 Bytes
Contents
<script> LiveRecord.helpers.loadRecords({modelName: 'Post'}) </script> <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 data-live-record-destroy-from='Post-<%= post.id %>'> <td data-live-record-update-from='Post-<%= post.id %>-title'><%= post.title %></td> <td data-live-record-update-from='Post-<%= post.id %>-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
3 entries across 3 versions & 1 rubygems