init
This commit is contained in:
		
							
								
								
									
										20
									
								
								app/views/player/show.html.erb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								app/views/player/show.html.erb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| <h1><%= @player.name %></h1> | ||||
|  | ||||
| <table><thead> | ||||
| <tr> | ||||
|   <th>Player</th> | ||||
|   <th>Purse</th> | ||||
|   <th>Wins</th> | ||||
|   <th>Losses</th> | ||||
| </tr></thead> | ||||
|   <tbody> | ||||
|   <% @player.each do |game| %> | ||||
|     <tr> | ||||
|       <td><% @player.name %></td> | ||||
|       <td><% @player.purse %></td> | ||||
|       <td><% @player.wins %></td> | ||||
|       <td><% @player.losses %></td> | ||||
|     </tr> | ||||
|   <% end %> | ||||
|   </tbody> | ||||
| </table> | ||||
		Reference in New Issue
	
	Block a user