<h1>CreditCard Example -- Display Orders Page</h1> <table> <tr> <th>Name</th> <th>Phone</th> <th>Amount</th> <th>Card Type</th> <th>Card Number</th> <th>Expiration Date</th> </tr> <% @a.each do |order| %> <tr> <td><%= order.name %></td> <td><%= order.phone %></td> <td><%= order.amount %></td> <td><%= order.card_type %></td> <td><%= order.card_no %></td> <td><%= "#{order.exp_date.mon}/#{order.exp_date.mon}" %></td> </tr> <% end %> </table> <p><%= link_to 'New Order Page', { :action => 'new_order'} %></p>