app/views/restrictions/index.html.erb
<% title "Restrictions" %>
<table class = "tablesorter">
<thead>
<tr>
<th>Starts</th>
<th>Expires</th>
<th>Max Subs</th>
<th>Max Hours</th>
</tr>
</thead>
<% for restriction in @restrictions %>
<tbody>
<tr>
<td><%= restriction.starts %></td>
<td><%= restriction.expires %></td>
<td><%= restriction.max_subs %></td>
<td><%= restriction.max_hours %></td>
<td><%= link_to "Show", restriction %></td>
<td><%= link_to "Edit", edit_restriction_path(restriction) %></td>
<td><%= link_to "Destroy", restriction, confirm: 'Are you sure?', method: :delete %></td>
</tr>
</tbody>
<% end %>
</table>
<p><%= link_to "New Restriction", new_restriction_path %></p>