Skip to content

Commit 8cd9230

Browse files
authored
Merge pull request rails#54074 from dsjohns85/patch-1
[ci skip] change "Destroy" to "Delete" on button for consistency
2 parents 0500342 + 3fae01e commit 8cd9230

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/getting_started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ link if not authenticated.
16501650
<%= link_to "Login", new_session_path unless authenticated? %>
16511651
```
16521652

1653-
You can also update the Edit and Destroy links on the
1653+
You can also update the Edit and Delete links on the
16541654
`app/views/products/show.html.erb` view to only display if authenticated.
16551655

16561656
```erb#4,7
@@ -1659,7 +1659,7 @@ You can also update the Edit and Destroy links on the
16591659
<%= link_to "Back", products_path %>
16601660
<% if authenticated? %>
16611661
<%= link_to "Edit", edit_product_path(@product) %>
1662-
<%= button_to "Destroy", @product, method: :delete, data: { turbo_confirm: "Are you sure?" } %>
1662+
<%= button_to "Delete", @product, method: :delete, data: { turbo_confirm: "Are you sure?" } %>
16631663
<% end %>
16641664
```
16651665

0 commit comments

Comments
 (0)