At some point, I lost the ability to log out of a session as well as delete entries on my web app.
<%= link "Delete", to: model_path(@conn, :delete, model), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>
It also appears in other locations:
<%= link "Log out", to: user_session_path(@conn, :delete, @current_user), method: "delete" %></li>
The link is replaced with a “#” instead of a real link. Googling around identifies this as a client side javascript issue, which seems to make sense as the output from mix shows no activity when the buttons are pressed.
app.js has import "phoenix_html"
included, as well as a set of multiple other scripts being updated on a per page basis per the outline in: https://blog.diacode.com/page-specific-javascript-in-phoenix-framework-pt-1
But that didn’t seem to have been the issue as after I did that modification the features worked. Just recently, anything associated with the delete method stopped working and I have no clue why.