mirror of https://github.com/rails/rails
Update layouts_and_rendering.md using turbo [ci-skip]
This commit is contained in:
parent
336a0ee65f
commit
296ef7a172
|
@ -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 New Issue