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

Listing games

+

Listing Games

- +
- + - <% for game in @games %> - - - - - + + + + + - + <% end %>
Game IDChecked Out TitleChecked Out New Release GenrePlatform + Platform
<%=h game.id %><%=h game.checkedout? %> <%=h game.title %><%=h game.newrelease %><%=h game.genre %><%=h game.game_platform %><%= link_to 'Show', :action => 'show', :id => game %><%=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 %>