X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fviews%2Fgame%2Fsearchresults.rhtml;h=b8c5d76bf4c4880ebf31bb2e9a7d2f0e93a2f0c2;hb=64aa5e3cbee5e3c07e0d97ee60d03a4a2dfcf787;hp=54e7998e01f9e311c0c0409a5d1ae921ed6a5c1b;hpb=0dccca2d3c0e9d5e6eaa1c1ebee3670654fd8c43;p=cs356-p2-videostore.git diff --git a/app/views/game/searchresults.rhtml b/app/views/game/searchresults.rhtml index 54e7998..b8c5d76 100644 --- a/app/views/game/searchresults.rhtml +++ b/app/views/game/searchresults.rhtml @@ -1,27 +1,29 @@ -
Sorry, there were no results
<% else %> -Game ID | -Checked Out | - <% for column in Game.content_columns %> -<%= column.human_name %> | - <% end %> +Game ID | +Checked Out | +Title | +New Release | +Genre | +Platform | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<%=h game.id %> | -<%=h game.checkedout? %> | - <% for column in Game.content_columns %> -<%=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?', :post => true %> | +<%= link_to 'Remove', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %> |