Skip to content

Commit 4a7319e

Browse files
authored
Merge pull request rails#55474 from lexcao/patch-2
[ci skip] Fix docs missing delete method on delete button
2 parents 31246d3 + 52beaa0 commit 4a7319e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/sign_up_and_settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ And finally, the user show view at `app/views/store/users/show.html.erb`:
12201220
12211221
<div>
12221222
<%= link_to "Edit user", edit_store_user_path(@user) %>
1223-
<%= button_to "Delete user", store_user_path(@user), data: { turbo_confirm: "Are you sure?" } %>
1223+
<%= button_to "Delete user", store_user_path(@user), method: :delete, data: { turbo_confirm: "Are you sure?" } %>
12241224
</div>
12251225
```
12261226

0 commit comments

Comments
 (0)