-<h1>Video Rental Policies</h1>
+<h1>Video Rental Pricing and Policies</h1>
<table border="1">
<tr>
- <% for column in VideoPolicy.content_columns %>
- <th><%= column.human_name %></th>
- <% end %>
+ <th>Description</th>
+ <th>Fee</th>
+ <th>Period</th>
</tr>
<% for video_policy in @video_policies %>
<tr>
- <% for column in VideoPolicy.content_columns %>
- <td><%=h video_policy.send(column.name) %></td>
- <% end %>
- <td><%= link_to 'View', :action => 'show', :id => video_policy %></td>
+ <td><%=h video_policy.description %></td>
+ <td><%=h number_to_currency(video_policy.fee) %></td>
+ <td><%=h video_policy.period %> Days</td>
<td><%= link_to 'Edit', :action => 'edit', :id => video_policy %></td>
</tr>
<% end %>
<%= link_to 'Previous page', { :page => @video_policy_pages.current.previous } if @video_policy_pages.current.previous %>
<%= link_to 'Next page', { :page => @video_policy_pages.current.next } if @video_policy_pages.current.next %>
-<br />
-
-<%= link_to 'New video_policy', :action => 'new' %>