pinrails/app/views/players/index.html.erb

13 lines
190 B
Plaintext

<h1>Pinball Players</h1>
<ul>
<% @players.each do |player| %>
<li>
<%= link_to player.name, player %>
</li>
<% end %>
</ul>
<%= link_to "Add player", new_player_path %>