diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md index 8675c2686d..ad168eb546 100644 --- a/guides/source/layouts_and_rendering.md +++ b/guides/source/layouts_and_rendering.md @@ -90,7 +90,7 @@ If we want to display the properties of all the books in our view, we can do so <%= book.content %> <%= link_to "Show", book %> <%= link_to "Edit", edit_book_path(book) %> - <%= link_to "Destroy", book, method: :delete, data: { confirm: "Are you sure?" } %> + <%= link_to "Destroy", book, data: { turbo_method: :delete, turbo_confirm: "Are you sure?" } %> <% end %>