projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small Cleanups + Merchandise Search
[cs356-p2-videostore.git]
/
app
/
views
/
game_genre
/
list.rhtml
diff --git
a/app/views/game_genre/list.rhtml
b/app/views/game_genre/list.rhtml
index
83c005c
..
63f595e
100644
(file)
--- a/
app/views/game_genre/list.rhtml
+++ b/
app/views/game_genre/list.rhtml
@@
-1,20
+1,14
@@
-<h1>Listing
game_g
enres</h1>
+<h1>Listing
Game G
enres</h1>
<table>
<tr>
<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>
</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 '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>
</tr>
<% end %>
</table>
@@
-24,4
+18,4
@@
<br />
<br />
-<%= link_to '
New game_g
enre', :action => 'new' %>
+<%= link_to '
Add a New Game G
enre', :action => 'new' %>