i tried it with link_to and button_to… my button_to example looks like this:
<%= button_to 'Delete', item_path(object), method: :delete, form: { data: { turbo_confirm: 'Really?' } } %>
and in my controller action it’s just a simple redirect
def destroy
redirect_to items_path, status: :see_other
end
the confirm shows up - also the redirect gets executed but it does not really redirect the page - it appends the html content of the redirect to the current page html tag… i’m not sure whats wrong i’m pulling out my hair… i mean it can’t be that hard - it should do a regular redirect - right?
package.json version “@hotwired/turbo-rails”: “7.2.4”
gemfile.lock turbo-rails 1.3.3