X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/555a821c3e1b79093b63b96e981c4766cf43baa9..b897832349ad0878e950ed177b7a050efb9a4a7c:/app/views/user/account.html.erb
diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb
index ab74e3780..a493ade68 100644
--- a/app/views/user/account.html.erb
+++ b/app/views/user/account.html.erb
@@ -5,13 +5,13 @@
<% content_for :heading do %>
<%= t 'user.account.my settings' %>
- - <%= link_to t('user.account.return to profile'), :controller => 'user', :action => 'view', :display_name => current_user.display_name %>
+ - <%= link_to t('user.account.return to profile'), user_path(current_user) %>
- <%= link_to t('user.view.oauth settings'), :controller => 'oauth_clients', :action => 'index' %>
<% end %>
-<%= error_messages_for 'user' %>
-<%= form_for :user, :html => { :multipart => true, :id => 'accountForm', :class => 'standard-form', :autocomplete => :off } do |f| %>
+<%= error_messages_for current_user %>
+<%= form_for current_user, :url => { :action => :account }, :method => :post, :html => { :multipart => true, :id => 'accountForm', :class => 'standard-form', :autocomplete => :off } do |f| %>