13 <% for game in @games %>
15 <td><%=h game.id %></td>
16 <td><%=h game.title %></td>
17 <td><%=h tf_to_yesno(game.checkedout?) %></td>
18 <td><%=h tf_to_yesno(game.newrelease) %></td>
19 <td><%=h game.genre.name %></td>
20 <td><%=h game.platform.name %></td>
21 <td><%= link_to 'View', :action => 'show', :id => game %></td>
22 <td><%= link_to 'Edit', :action => 'edit', :id => game %></td>
23 <td><%= link_to 'Remove', { :action => 'destroy', :id => game }, :confirm => 'Are you sure?', :method => :post %></td>
28 <%= link_to 'Previous page', { :page => @game_pages.current.previous } if @game_pages.current.previous %>
29 <%= link_to 'Next page', { :page => @game_pages.current.next } if @game_pages.current.next %>
33 <%= link_to 'New game', :action => 'new' %>