From: Andy Allan Date: Thu, 12 Aug 2021 16:53:10 +0000 (+0100) Subject: Use named paths for diary comments path X-Git-Tag: live~2026^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/2436f9e580edb2d4f23db0f489e619d6fb69764f Use named paths for diary comments path --- diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 5e7883799..0db30f5b5 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -22,7 +22,7 @@ <%= number_with_delimiter(current_user.diary_entries.size) %>
  • - <%= link_to t(".my comments"), :controller => "diary_entries", :action => "comments", :display_name => current_user.display_name %> + <%= link_to t(".my comments"), diary_comments_path(current_user) %>
  • <%= link_to t(".my settings"), user_account_path(current_user) %> @@ -70,7 +70,7 @@ <%= number_with_delimiter(@user.diary_entries.size) %>
  • - <%= link_to t(".comments"), :controller => "diary_entries", :action => "comments", :display_name => @user.display_name %> + <%= link_to t(".comments"), diary_comments_path(@user) %>
  • <% if current_user and current_user.is_friends_with?(@user) %>