<% prefix = f.object.class.to_s.downcase %>
<%= f.fields_for :contributors do |cf| %>
-
<%= cf.hidden_field :id %>
<%= cf.hidden_field :_destroy %>
<% if cf.object.persisted? %>
<%=link_to cf.object.name, cf.object, target: '_new' %>
<% else %>
<%= cf.text_field :name,
class: 'input-xlarge autocomplete-users', 'data-url' => people_path, required: cf.index == 0 %>
<% end %>
<% end %>