Add real Gamegenre support
[cs356-p2-videostore.git] / app / views / game / list.rhtml
index f1317de..fce55da 100644 (file)
@@ -2,16 +2,22 @@
 
 <table>
   <tr>
-  <% for column in Game.content_columns %>
-    <th><%= column.human_name %></th>
-  <% end %>
+    <th>Game ID</th>
+    <th>Checked Out</th>
+    <th>Title</th>
+    <th>New Release</th>
+    <th>Genre</th>
+    <td>Platform</th>
   </tr>
   
 <% for game in @games %>
   <tr>
-  <% for column in Game.content_columns %>
-    <td><%=h game.send(column.name) %></td>
-  <% end %>
+    <td><%=h game.id %></td>
+    <td><%=h game.checkedout? %></td>
+    <td><%=h game.title %></td>
+    <td><%=h game.newrelease %></td>
+    <td><%=h game.genre %></td>
+    <td>FIXME</td>
     <td><%= link_to 'Show', :action => 'show', :id => game %></td>
     <td><%= link_to 'Edit', :action => 'edit', :id => game %></td>
     <td><%= link_to 'Destroy', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %></td>