Skip to content

Commit

Permalink
Use hash syntax, named route helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti committed Nov 12, 2021
1 parent 2ffd3c8 commit b32d0de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/users/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
%th Account Name:
%td= @user.username
%tr
%td{:colspan => "2", :style => "text-align: right;"}
= link_to "Edit Information", "/accounts/#{CGI.escape(@user.username)}/edit"
%td{colspan: "2", style: "text-align: right;"}
= link_to "Edit Information", edit_user_path(url_encode(@user.username))
%br/
%span{style: "font-size: large; font-weight: bold;"}
API Key
Expand Down

0 comments on commit b32d0de

Please sign in to comment.