Add GamePolicy and integrate with the Game model
[cs356-p2-videostore.git] / app / views / game_policy / list.rhtml
diff --git a/app/views/game_policy/list.rhtml b/app/views/game_policy/list.rhtml
new file mode 100644 (file)
index 0000000..761de30
--- /dev/null
@@ -0,0 +1,27 @@
+<h1>Listing game_policies</h1>
+
+<table>
+  <tr>
+  <% for column in GamePolicy.content_columns %>
+    <th><%= column.human_name %></th>
+  <% end %>
+  </tr>
+  
+<% for game_policy in @game_policies %>
+  <tr>
+  <% for column in GamePolicy.content_columns %>
+    <td><%=h game_policy.send(column.name) %></td>
+  <% end %>
+    <td><%= link_to 'Show', :action => 'show', :id => game_policy %></td>
+    <td><%= link_to 'Edit', :action => 'edit', :id => game_policy %></td>
+    <td><%= link_to 'Destroy', { :action => 'destroy', :id => game_policy }, :confirm => 'Are you sure?', :method => :post %></td>
+  </tr>
+<% end %>
+</table>
+
+<%= link_to 'Previous page', { :page => @game_policy_pages.current.previous } if @game_policy_pages.current.previous %>
+<%= link_to 'Next page', { :page => @game_policy_pages.current.next } if @game_policy_pages.current.next %> 
+
+<br />
+
+<%= link_to 'New game_policy', :action => 'new' %>