From a3f6c9770f5683271c3fc4b5ab94cfdae4448782 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Wed, 8 Jan 2025 17:39:46 +0800 Subject: [PATCH] fix: correct link_to syntax in account activation email - Updated the link_to helper in the account activation email view - Changed the order of parameters in edit_account_activation_url This change corrects the syntax for the link_to method, ensuring that the activation link is generated properly with the correct parameters. This fix improves the functionality of the account activation process for users. --- app/views/user_mailer/account_activation.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/user_mailer/account_activation.html.erb b/app/views/user_mailer/account_activation.html.erb index 6b36840..eae29cf 100644 --- a/app/views/user_mailer/account_activation.html.erb +++ b/app/views/user_mailer/account_activation.html.erb @@ -6,4 +6,4 @@ Welcome to the Sample App! Click on the link below to activate your account:

-<%= link_to "Activate", edit_account_activation_url(id: @user.activation_token, email: @user.email) %> +<%= link_to "Activate", edit_account_activation_url(@user.activation_token, email: @user.email) %>