I have the following exit link in my application, but when I click on it, it does nothing.
<li class="nav-item">
<%= link "Logout", to: session_path(@conn, :delete), method: :delete, class: "nav-link" %>
</li>
The html element that generates the above code is
<li class="nav-item">
<form action="/logout" class="link" method="post">
<input name="_method" type="hidden" value="delete">
<input name="_csrf_token" type="hidden" value="GiA4JANYN10+JQhfUgIEARxZCRIEAAAUijC25v5Kj8j7KI6qrOtv==">
<a data-submit="parent" href="#">Logout</a>
</form>
</li>
Does anyone see something clearly wrong here that the exit link will not do anything when clicked?
brunch-config.js
javascripts: {
joinTo: {
"js/app.js": /^(web\/static\/js)/,
"js/jquery-ujs.js.js": ["web/static/vendor/js/jquery-ujs.js.js"],
"js/jquery.js": ["web/static/vendor/js/jquery.js"]
},
...
source
share