<%= form_for Synapse.new, url: synapses_url, remote: true do |form| %>
Add Synapse Between Topics
<%= hidden_field_tag(:category, "Item") %>
<% if Item.all.count > 0 %>
<%= select_tag :node1_id, options_from_collection_for_select(Item.order("name ASC").all, "id", "name") %>
<% end %>
<%= form.text_field :desc, class: "description" %>
<% if Item.all.count > 0 %>
<%= select_tag :node2_id, options_from_collection_for_select(Item.order("name ASC").all, "id", "name") %>
<% end %>
<%= form.submit "Add Synapse", class: "add" %>
<% end %>