mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update layouts_and_rendering.md using turbo [ci-skip]
This commit is contained in:
parent
336a0ee65f
commit
296ef7a172
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue