<li><%= link_to 'List All Games', :action => 'list' %></li>
<li><%= link_to 'Search for a Game', :action => 'search' %></li>
<li><%= link_to 'Add a New Game', :action => 'new' %></li>
+ <br/>
+ <li><%= link_to 'List All Game Genres', :controller => 'game_genre', :action => 'list' %></li>
+ <li><%= link_to 'Add a New Game Genre', :controller => 'game_genre', :action => 'new' %></li>
</ul>
-<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>
<br />
-<%= link_to 'New game_genre', :action => 'new' %>
+<%= link_to 'Add a New Game Genre', :action => 'new' %>