Set user instance var for settings routes where needed
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"settings--account--email-validation-failed-value": @validation_errors.present?
|
||||
} do %>
|
||||
<h3>E-Mail</h3>
|
||||
<%= form_for(current_user, url: update_email_settings_path, method: "post") do |f| %>
|
||||
<%= form_for(@user, url: update_email_settings_path, method: "post") do |f| %>
|
||||
<%= hidden_field_tag :section, "account" %>
|
||||
<p class="mb-2">
|
||||
<%= f.label :email, 'Address', class: 'font-bold' %>
|
||||
|
||||
Reference in New Issue
Block a user