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 %>