Sha256: 9b83b582ced5830fb9362f425cf3ea37698078909d61bbd2d268a33fceae02a2

Contents?: true

Size: 977 Bytes

Versions: 1

Compression:

Stored size: 977 Bytes

Contents

<div class="container" style="margin-top: 70px;">   
  <h3>Posts</h3>
  <div style="margin-bottom: 10px;">   
    <%= link_to 'Add Post', 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, data: {confirm: "Are you sure?"}, :id => 'del', 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.6 app/views/form_creation/posts/index.html.erb