`
Welcome to Agro
<% if @user %> Logged in as: <%= @user.email %>
<%= button_to “Logout”, logout_path, method: :delete %> <% end %> `
`
<% if @user %> Logged in as: <%= @user.email %>
<%= button_to “Logout”, logout_path, method: :delete %> <% end %> `
If you are using this in Rails 7 (and maybe even 6) try changing method to turbo_method
and see if it works the way you expect.
Walter