X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fgame%2Flist.rhtml;h=d35c1eb3534e7ced89b69ce57419ab3aa3b6db11;hb=38bf6e867a85ce3283a5b696bfa54afc63fa75bd;hp=f1317de52a3d01c7d068e42bc75621792cdb45ab;hpb=7f26973835fc8deef03d25d751e92e4c633ae464;p=cs356-p2-videostore.git diff --git a/app/views/game/list.rhtml b/app/views/game/list.rhtml index f1317de..d35c1eb 100644 --- a/app/views/game/list.rhtml +++ b/app/views/game/list.rhtml @@ -2,16 +2,22 @@ - <% for column in Game.content_columns %> - - <% end %> + + + + + + <% for game in @games %> - <% for column in Game.content_columns %> - - <% end %> + + + + + +
<%= column.human_name %>Game IDChecked OutTitleNew ReleaseGenrePlatform
<%=h game.send(column.name) %><%=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 %> <%= link_to 'Edit', :action => 'edit', :id => game %> <%= link_to 'Destroy', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %>