Update layouts_and_rendering.md using turbo [ci-skip]

This commit is contained in:
Ryuta Kamizono 2021-12-27 18:47:44 +09:00
parent 336a0ee65f
commit 296ef7a172
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ If we want to display the properties of all the books in our view, we can do so
<td><%= book.content %></td>
<td><%= link_to "Show", book %></td>
<td><%= link_to "Edit", edit_book_path(book) %></td>
<td><%= link_to "Destroy", book, method: :delete, data: { confirm: "Are you sure?" } %></td>
<td><%= link_to "Destroy", book, data: { turbo_method: :delete, turbo_confirm: "Are you sure?" } %></td>
</tr>
<% end %>
</tbody>