Add GameGenres to the Games page
[cs356-p2-videostore.git] / app / views / game_genre / list.rhtml
index 83c005c..63f595e 100644 (file)
@@ -1,20 +1,14 @@
-<h1>Listing game_genres</h1>
+<h1>Listing Game Genres</h1>
 
 <table>
   <tr>
-  <% for column in GameGenre.content_columns %>
-    <th><%= column.human_name %></th>
-  <% end %>
+    <th>Name</th>
   </tr>
   
 <% for game_genre in @game_genres %>
   <tr>
-  <% for column in GameGenre.content_columns %>
-    <td><%=h game_genre.send(column.name) %></td>
-  <% end %>
-    <td><%= link_to 'Show', :action => 'show', :id => game_genre %></td>
+    <td><%= link_to game_genre.name.to_s, :action => 'show', :id => game_genre %></td>
     <td><%= link_to 'Edit', :action => 'edit', :id => game_genre %></td>
-    <td><%= link_to 'Destroy', { :action => 'destroy', :id => game_genre }, :confirm => 'Are you sure?', :method => :post %></td>
   </tr>
 <% end %>
 </table>
@@ -24,4 +18,4 @@
 
 <br />
 
-<%= link_to 'New game_genre', :action => 'new' %>
+<%= link_to 'Add a New Game Genre', :action => 'new' %>