X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fgame%2Flist.rhtml;h=fce55daa39eca2c1a2f56b2d831f05540e533be5;hb=2818e8becfb6a257df623713d507f0994d5cc278;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..fce55da 100644 --- a/app/views/game/list.rhtml +++ b/app/views/game/list.rhtml @@ -2,20 +2,22 @@ - - - <% for column in Game.content_columns %> - - <% end %> + + + + + + <% for game in @games %> - - - <% for column in Game.content_columns %> - - <% end %> + + + + + +
Game IDChecked Out<%= column.human_name %>Game IDChecked OutTitleNew ReleaseGenrePlatform
<%=h game.id %><%=h game.checkedout? %><%=h game.send(column.name) %><%=h game.id %><%=h game.checkedout? %><%=h game.title %><%=h game.newrelease %><%=h game.genre %>FIXME <%= link_to 'Show', :action => 'show', :id => game %> <%= link_to 'Edit', :action => 'edit', :id => game %> <%= link_to 'Destroy', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %>