Sha256: b0e2010ee0eb1f60711f4c0d6edf0d03e48bf8cfdb22dba0720e02400250abed

Contents?: true

Size: 899 Bytes

Versions: 1

Compression:

Stored size: 899 Bytes

Contents

<div class="container" style="margin-top: 70px;">   
    <h3>Posts</h3>   
    <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', form_create_post_path(p) %>   
                <%= link_to 'Edit', edit_form_create_post_path(p) %>   
                <%= link_to 'Delete', form_create_post_path(p), method: :delete %>   
            </td>    
          </tr>
        <% end %>  
       </tbody>     
    </table>  
</div>   
<div>   
  <%= link_to 'Add User', new_form_create_post_path %>   
</div> 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
form_create-0.0.1 app/views/form_create/posts/index.html.erb