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:
parent
89a4065c42
commit
5526230aeb
@ -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 %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user