Skip to content

Commit 009c406

Browse files
committed
Prefer button_to over link_to ... method: :post
1 parent 231e67d commit 009c406

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/users/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<% else %>
5353
<%= orcid_link(@user.profile) %>
5454
<% if current_user == @user && !@user.profile.orcid_authenticated? %>
55-
<%= link_to t('orcid.authenticate'), orcid_authenticate_path, method: :post, class: 'btn btn-default' %>
55+
<%= button_to t('orcid.authenticate'), orcid_authenticate_path, class: 'btn btn-default' %>
5656
<% end %>
5757
<% end %>
5858
</p>

0 commit comments

Comments
 (0)