Skip to content

Commit

Permalink
Upgrade data attributes to turbo syntax #109
Browse files Browse the repository at this point in the history
As opposed to the old jquery-rails style.
  • Loading branch information
oneiros committed Dec 8, 2022
1 parent f54beeb commit 57f9044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<% end %>
<% end %>
<% if can? :delete, user %>
<%= link_to user, method: :delete, data: { confirm: user_deletion_confirmation(user) }, class:"btn btn-sm btn-danger min-width-btn" do %>
<%= link_to user, data: {turbo_method: :delete, turbo_confirm: user_deletion_confirmation(user) }, class:"btn btn-sm btn-danger min-width-btn" do %>
<%= icon "trash" %>
Delete
<% end %>
Expand Down

0 comments on commit 57f9044

Please sign in to comment.