0573275d0a61672a917f4ecebba14efb33e9fa0f
[cs356-p2-videostore.git] / app / views / video_policy / list.rhtml
1 <h1>Video Rental Policies</h1>
2
3 <table border="1">
4   <tr>
5   <% for column in VideoPolicy.content_columns %>
6     <th><%= column.human_name %></th>
7   <% end %>
8   </tr>
9   
10 <% for video_policy in @video_policies %>
11   <tr>
12   <% for column in VideoPolicy.content_columns %>
13     <td><%=h video_policy.send(column.name) %></td>
14   <% end %>
15     <td><%= link_to 'View', :action => 'show', :id => video_policy %></td>
16     <td><%= link_to 'Edit', :action => 'edit', :id => video_policy %></td>
17   </tr>
18 <% end %>
19 </table>
20
21 <%= link_to 'Previous page', { :page => @video_policy_pages.current.previous } if @video_policy_pages.current.previous %>
22 <%= link_to 'Next page', { :page => @video_policy_pages.current.next } if @video_policy_pages.current.next %> 
23
24 <br />
25
26 <%= link_to 'New video_policy', :action => 'new' %>