X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fgame%2Flist.rhtml;h=4528322ee7aac882444c18e6bda79875e43267f4;hb=64aa5e3cbee5e3c07e0d97ee60d03a4a2dfcf787;hp=1a17dbf04c3bee025123d8b6a13a39a54ceb9b61;hpb=0dccca2d3c0e9d5e6eaa1c1ebee3670654fd8c43;p=cs356-p2-videostore.git diff --git a/app/views/game/list.rhtml b/app/views/game/list.rhtml index 1a17dbf..4528322 100644 --- a/app/views/game/list.rhtml +++ b/app/views/game/list.rhtml @@ -1,24 +1,26 @@ -

Listing games

+

Listing Games

- +
- - - <% for column in Game.content_columns %> - - <% end %> + + + + + + <% for game in @games %> - - - <% for column in Game.content_columns %> - - <% end %> - + + + + + + + - + <% end %>
Game IDChecked Out<%= column.human_name %>Game IDTitleChecked OutNew ReleaseGenrePlatform
<%=h game.id %><%=h game.checkedout? %><%=h game.send(column.name) %><%= link_to 'Show', :action => 'show', :id => game %><%=h game.id %><%=h game.title %><%=h tf_to_yesno(game.checkedout?) %><%=h tf_to_yesno(game.newrelease) %><%=h game.genre.name %><%=h game.platform.name %><%= link_to 'View', :action => 'show', :id => game %> <%= link_to 'Edit', :action => 'edit', :id => game %><%= link_to 'Destroy', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %><%= link_to 'Remove', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %>