%= form_for @synapse, url: synapse_url do |form| %>
Edit Synapse
<% if @collection.count > 0 %>
<%= select "node1_id", "node1", @collection.map {|p| [ p.name, p.id ] }, { :selected => @synapse.node1_id } %>
<% end %>
<%= form.text_field :desc, class: "description" %>
<% if @collection.count > 0 %>
<%= select "node2_id", "node2", @collection.map {|p| [ p.name, p.id ] }, { :selected => @synapse.node2_id } %>
<% end %>
<%= form.submit "Update", class: "update" %>
<% end %>