From 2436f9e580edb2d4f23db0f489e619d6fb69764f Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Thu, 12 Aug 2021 17:53:10 +0100 Subject: [PATCH] Use named paths for diary comments path --- app/views/users/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) %> -- 2.43.2