Sha256: 99d9e8b524cdc70f34fb02c6acce1971c40a426f197bb563594938b16db23d69
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
<p id="notice"><%= notice %></p> <h1>Listing Posts</h1> <table> <thead> <tr> <th>Title</th> <th>Body</th> <th>Is published</th> <th colspan="3"></th> </tr> </thead> <tbody> <% @posts.each do |post| %> <tr> <td><%= post.title %></td> <td><%= post.body %></td> <td><%= post.is_published %></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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
controller_resources-0.0.6 | spec/dummy/app/views/posts/index.html.erb |