My test erb:
<%= link_to 'Test', test_path, data: { turbo_method: :delete } %>
My test controller method looks like this:
def test
redirect_to root_path, status: :see_other
end
Simple as that.. it responds with a turbostream and appends the response (the root page content) to my html tag instead of redirecting to the root page. Currently using "@hotwired/turbo-rails": "7.2.4"
Is that because turbo_method generates a form and executes inside it / misses the target? I tried several variations of adding a target but it always appends the response..
Shouldn't turbo_method: :delete
be the same as rails ujs method: :delete
?