Sha256: ef0cfcf9ad05e9da9432b1a57ee55ee47d33e1843e139db51062d7147908d27e

Contents?: true

Size: 884 Bytes

Versions: 2

Compression:

Stored size: 884 Bytes

Contents

<h1>Listing containers</h1>

<table>
  <tr>
  <% for column in Container.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% for container in @containers %>
  <tr>
  <% for column in Container.content_columns %>
    <td><%=h container.send(column.name) %></td>
  <% end %>
    <td><%= link_to 'Show', :action => 'show', :id => container %></td>
    <td><%= link_to 'Edit', :action => 'edit', :id => container %></td>
    <td><%= link_to 'Destroy', { :action => 'destroy', :id => container }, :confirm => 'Are you sure?', :method => :post %></td>
  </tr>
<% end %>
</table>

<%= link_to 'Previous page', { :page => @container_pages.current.previous } if @container_pages.current.previous %>
<%= link_to 'Next page', { :page => @container_pages.current.next } if @container_pages.current.next %> 

<br />

<%= link_to 'New container', :action => 'new' %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
advertnet-1.0.0 app/views/container/list.rhtml
advertnet-1.0.1 app/views/container/list.rhtml