1 2 3 4 5 6 7 8 9 10 11 12 13 14
<p style="color: green"><%= notice %></p> <h1>Players</h1> <div id="players"> <% @players.each do |player| %> <%= render player %> <p> <%= link_to "Show this player", player %> </p> <% end %> </div> <%= link_to "New player", new_player_path %>