fix: #4022 Gifting someone a gold account shows "You are now a Builder level account."
This commit is contained in:
@@ -54,6 +54,6 @@ class UserUpgradesController < ApplicationController
|
|||||||
flash[:error] = e.message
|
flash[:error] = e.message
|
||||||
end
|
end
|
||||||
|
|
||||||
redirect_to user_upgrade_path
|
redirect_to user_upgrade_path(user_id: params[:user_id])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3,7 +3,12 @@
|
|||||||
<% if flash[:success] %>
|
<% if flash[:success] %>
|
||||||
<h1>Congratulations!</h1>
|
<h1>Congratulations!</h1>
|
||||||
|
|
||||||
<p>You are now a <%= CurrentUser.user.level_string %> level account. Thanks for supporting the site!</p>
|
<% if params[:user_id] %>
|
||||||
|
<p><%= user.name %> is now a <%= user.level_string %> level account. Thanks for supporting the site!</p>
|
||||||
|
<% else %>
|
||||||
|
<p>You are now a <%= user.level_string %> level account. Thanks for supporting the site!</p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<p><%= link_to "Return to posts", posts_path %> </p>
|
<p><%= link_to "Return to posts", posts_path %> </p>
|
||||||
<% elsif flash[:error] %>
|
<% elsif flash[:error] %>
|
||||||
<h1>An error occurred!</h1>
|
<h1>An error occurred!</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user