X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fgame%2Flist.rhtml;h=4528322ee7aac882444c18e6bda79875e43267f4;hb=c6189824da1944b9b80b81c42a37c178029cab3b;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..4528322 100644 --- a/app/views/game/list.rhtml +++ b/app/views/game/list.rhtml @@ -1,20 +1,26 @@ -
<%= column.human_name %> | - <% end %> +Game ID | +Title | +Checked Out | +New Release | +Genre | +Platform | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
<%=h game.send(column.name) %> | - <% end %> -<%= 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 %> |