The turbo_method
call in rails7/depot_a/app/views/products/index.html.erb
is missing a comma after :delete
. The corrected method call is shown below:
<%= link_to 'Destroy',
product,
class: 'hover:underline',
data: { turbo_method: :delete, turbo_confirm: "Are you sure?" } %>