Fix RentablePurchases, which saved the wrong customer_id
[cs356-p2-videostore.git] / app / views / gameplatform / list.rhtml
1 <h1>Listing gameplatforms</h1>
2
3 <table>
4   <tr>
5   <% for column in Gameplatform.content_columns %>
6     <th><%= column.human_name %></th>
7   <% end %>
8   </tr>
9   
10 <% for gameplatform in @gameplatforms %>
11   <tr>
12   <% for column in Gameplatform.content_columns %>
13     <td><%=h gameplatform.send(column.name) %></td>
14   <% end %>
15     <td><%= link_to 'Show', :action => 'show', :id => gameplatform %></td>
16     <td><%= link_to 'Edit', :action => 'edit', :id => gameplatform %></td>
17     <td><%= link_to 'Destroy', { :action => 'destroy', :id => gameplatform }, :confirm => 'Are you sure?', :method => :post %></td>
18   </tr>
19 <% end %>
20 </table>
21
22 <%= link_to 'Previous page', { :page => @gameplatform_pages.current.previous } if @gameplatform_pages.current.previous %>
23 <%= link_to 'Next page', { :page => @gameplatform_pages.current.next } if @gameplatform_pages.current.next %> 
24
25 <br />
26
27 <%= link_to 'New gameplatform', :action => 'new' %>