diff options
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/show.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index f11b01f..9d253ec 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -6,7 +6,7 @@ </div> <div> <p class="text-lg">NAME: <%= @user.name || "???" %> - <p>POKéDEX: <%= @user.pokedex_captured_count %></p> + <p><%= link_to "POKéDEX: #{@user.captured_pokemon.count}", pokedex_path(user_id: @user.id) %></p> <p>TIME: <%= distance_of_time_in_words_to_now(@user.created_at) %></p> </div> <% if @user == current_user %> |