From 5526230aebfdaea611f255f3b81bc80395765c49 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Thu, 13 Sep 2018 13:45:28 -0400 Subject: [PATCH] Remote true means the submit button won't get disabled --- app/views/images/_info.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/images/_info.html.erb b/app/views/images/_info.html.erb index 9b4f24f..91cc7fd 100644 --- a/app/views/images/_info.html.erb +++ b/app/views/images/_info.html.erb @@ -5,7 +5,7 @@
<%= 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 %>