From 4b1e1065c01c5111352c024c2989b3205957a954 Mon Sep 17 00:00:00 2001 From: Lukas Eipert Date: Fri, 6 Apr 2018 10:48:20 +0200 Subject: use the right way to construct action url --- app/views/profiles/accounts/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/profiles/accounts/show.html.haml b/app/views/profiles/accounts/show.html.haml index e339b89ed26..9c95b6281ba 100644 --- a/app/views/profiles/accounts/show.html.haml +++ b/app/views/profiles/accounts/show.html.haml @@ -57,7 +57,7 @@ = succeed '.' do = link_to 'Learn more', help_page_path('user/profile/index', anchor: 'changing-your-username'), target: '_blank' .col-lg-8 - - data = { initial_username: current_user.username, root_url: root_url, action_url: "#{update_username_profile_path}?format=json" } + - data = { initial_username: current_user.username, root_url: root_url, action_url: update_username_profile_path(format: :json) } #update-username{ data: data } %hr -- cgit v1.2.1