<%= form_tag(pool_element_path, :class => "simple_form", :remote => true, :format => :js) do %> <%= hidden_field_tag "post_id", @post.id %>
<%= text_field_tag "pool_name", "", :data => { autocomplete: "pool" } %>
<%= submit_tag "Submit" %>
<% end %>