Skip to content

Commit c55d6aa

Browse files
committed
Some method: :delete cleanup
1 parent fc6f54b commit c55d6aa

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

app/views/bookmarks/_editable_bookmark_button.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<%= tag.span id: dom_id(resource, :bookmark_button), data: {controller: "optimistic-bookmark"} do %>
44
<% if resource.bookmarks.any? { |b| b.user_id == current_user.id } %>
55
<%= button_to bookmark_path(current_user.bookmark_for(resource)),
6-
method: :delete,
76
class: "inline-flex items-center gap-2 px-4 py-2
87
border border-gray-500 text-primary rounded-lg
98
hover:bg-primary hover:text-white transition-colors duration-200

app/views/shared/_navbar_user.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
<% end %>
6767

6868
<%= link_to destroy_user_session_path,
69-
method: :delete,
7069
data: { turbo_method: :delete },
7170
class: "flex items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 w-full space-x-2" do %>
7271
<i class="fas fa-sign-out-alt"></i>

app/views/workshops/_form_old.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@
451451
<div class="flex gap-x-3 mt-6">
452452
<% if f.object.persisted? && current_user&.super_user? %>
453453
<%= link_to "Delete", @workshop, class: "btn btn-danger-outline",
454-
method: :delete, data: { turbo_method: :delete, turbo_confirm: "Are you sure?" } %>
454+
data: { turbo_method: :delete, turbo_confirm: "Are you sure?" } %>
455455
<% end %>
456456

457457
<%= link_to "Cancel",

lib/templates/erb/scaffold/_form.html.erb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<!-- Form Actions -->
1818
<div class="form-actions flex flex-wrap gap-3 mt-6 justify-end">
1919
<%% if @<%= singular_table_name %>.persisted? && current_user&.super_user? %>
20-
<%%= link_to "Delete", @<%= singular_table_name %>, method: :delete,
20+
<%%= link_to "Delete", @<%= singular_table_name %>,
2121
class: "btn btn-danger-outline", data: { turbo_method: :delete, turbo_confirm: "Are you sure?" } %>
2222
<%% end %>
2323
<%%= link_to "Cancel", <%= plural_table_name %>_path, class: "btn btn-secondary-outline" %>

0 commit comments

Comments
 (0)