X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;ds=inline;f=app%2Fviews%2Fgame%2Flist.rhtml;h=fce55daa39eca2c1a2f56b2d831f05540e533be5;hb=2818e8becfb6a257df623713d507f0994d5cc278;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..fce55da 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 %>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 %>