1
0
mirror of https://github.com/danbee/my-images synced 2025-03-04 08:49:05 +00:00

Remote true means the submit button won't get disabled

This commit is contained in:
Daniel Barber 2018-09-13 13:45:28 -04:00
parent 89a4065c42
commit 5526230aeb
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -5,7 +5,7 @@
<div class="new-tag-form">
<%= form_tag user_image_tags_path(image),
method: :post,
data: { action: "tags#create" } do %>
data: { remote: true, action: "tags#create" } do %>
<%= text_field_tag :tag, nil, data: { target: "tags.tag" } %>
<%= submit_tag "Add Tag" %>
<% end %>