X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fvideo_policy%2Flist.rhtml;h=539ca06294b71c5977a075aab1a7fb5ccbc2970a;hb=506205df80b0318a1d58f59cbf68d5be4329489a;hp=2b916c608957dd7be6dd6865f7ff0bcd1181bb7a;hpb=01114330b962728805d3c43f2f1a1423f2bd66b3;p=cs356-p2-videostore.git diff --git a/app/views/video_policy/list.rhtml b/app/views/video_policy/list.rhtml index 2b916c6..539ca06 100644 --- a/app/views/video_policy/list.rhtml +++ b/app/views/video_policy/list.rhtml @@ -1,20 +1,19 @@ -

Listing video_policies

+

Video Rental Pricing and Policies

- +
- <% for column in VideoPolicy.content_columns %> - - <% end %> + + + <% for video_policy in @video_policies %> - <% for column in VideoPolicy.content_columns %> - - <% end %> - + + + + - <% end %>
<%= column.human_name %>DescriptionFeePeriod
<%=h video_policy.send(column.name) %><%= link_to 'Show', :action => 'show', :id => video_policy %><%=h video_policy.description %><%=h number_to_currency(video_policy.fee) %><%=h video_policy.period %> Days<%= link_to 'View', :action => 'show', :id => video_policy %> <%= link_to 'Edit', :action => 'edit', :id => video_policy %><%= link_to 'Destroy', { :action => 'destroy', :id => video_policy }, :confirm => 'Are you sure?', :method => :post %>
@@ -22,6 +21,3 @@ <%= 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 %> -
- -<%= link_to 'New video_policy', :action => 'new' %>