Within my action.js.erb file, I have the following code:
<%= render 'smthng' %>
Inside the _smthng.js.erb file:
...
$("#modal").modal("hide")
...
When I trigger the action, the modal window does not hide. However, if I include $("#modal").modal("hide") inside the action.js.erb file directly instead of using render, the modal window hides correctly.