]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_header.html.erb
Just pass the user object, rather than the display_name, to the user_path helper
[rails.git] / app / views / layouts / _header.html.erb
index a3e1846a98b75cfa37a87d14c0740dbc74149cb8..cd3dfd46883e7d10b6f48516642d930c6c1eacaa 100644 (file)
@@ -86,7 +86,7 @@
             <% end %>
           </li>
           <li>
-            <%= link_to t('user.show.my profile'), user_path(:display_name => current_user.display_name) %>
+            <%= link_to t('user.show.my profile'), user_path(current_user) %>
           </li>
           <li>
             <%= link_to t('user.show.my settings'), :controller => 'user', :action => 'account', :display_name => current_user.display_name %>