Sha256: 9f0946b3d03ee10fbe6a859fe95c2588ff6c473d68fb53c9f440c9399028ed70
Contents?: true
Size: 930 Bytes
Versions: 1
Compression:
Stored size: 930 Bytes
Contents
<div class="container" style="margin-top: 70px;"> <h3>Posts</h3> <div style="margin-bottom: 10px;"> <%= link_to 'Add User', new_post_path, class: "btn btn-success" %> </div> <table class="table table-striped"> <thead> <tr> <th>Title</th> <th>Descption</th> <th>Created_by</th> <th>Actions</th> </tr> </thead> <tbody> <% @posts.each do |p| %> <tr> <td><%= p.title %></td> <td><%= p.description %></td> <td><%= p.created_by %></td> <td> <%= link_to 'Show', post_path(p), class: "btn btn-info" %> <%= link_to 'Edit', edit_post_path(p), class: "btn btn-warning"%> <%= link_to 'Delete', post_path(p), method: :delete, class: "btn btn-danger" %> </td> </tr> <% end %> </tbody> </table> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
form_creation-0.0.4 | app/views/form_creation/posts/index.html.erb |