Listing Games

<% for game in @games %> <% end %>
Game ID Title Checked Out New Release Genre Platform
<%=h game.id %> <%=h game.title %> <%=h tf_to_yesno(game.checkedout?) %> <%=h tf_to_yesno(game.newrelease) %> <%=h game.genre %> <%=h game.game_platform %> <%= link_to 'View', :action => 'show', :id => game %> <%= link_to 'Edit', :action => 'edit', :id => game %> <%= link_to 'Remove', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %>
<%= link_to 'Previous page', { :page => @game_pages.current.previous } if @game_pages.current.previous %> <%= link_to 'Next page', { :page => @game_pages.current.next } if @game_pages.current.next %>
<%= link_to 'New game', :action => 'new' %>