Kann jemand ein Modal von einem button_tag oder submit_tag auf RoR öffnen, anstatt auf eine andere Seite umzuleiten, wenn er ein Formular abschickt?RoR modal von submit?
Ex:
<%= form_tag(compare_products_path, :id => 'product-select', remote: true) do %>
<%= button_tag "Compare",id:'compare-button', class: 'pull-right btn btn-default'%>
<%= check_box_tag "products[]", product.id %>
die button_tag modal mit Inhalt von Produkten öffnen sollte/vergleichen
Dank!