diff options
Diffstat (limited to 'app/views/players')
-rw-r--r-- | app/views/players/edit.html.erb | 2 | ||||
-rw-r--r-- | app/views/players/index.html.erb | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/players/edit.html.erb b/app/views/players/edit.html.erb index 4c30fc1..797c846 100644 --- a/app/views/players/edit.html.erb +++ b/app/views/players/edit.html.erb @@ -1,4 +1,4 @@ -<h1>Edit Player</h1> +<h1>Edit <%= @player.name %></h1> <%= render "form", machine: @player %> diff --git a/app/views/players/index.html.erb b/app/views/players/index.html.erb index cedaad3..67717e0 100644 --- a/app/views/players/index.html.erb +++ b/app/views/players/index.html.erb @@ -1,9 +1,10 @@ <h1>Pinball Players</h1> +<p><%= @players.count %> available players</p> <ul> <% @players.each do |player| %> <li> - <%= link_to player.name, player %> + <%= link_to player.name, edit_player_path(player) %> </li> <% end %> </ul> |