I am using ryan bates nested_form gem to dynamically add some nested field to a form.
e.g.
<%= f.fields_for :phones do |phone_form| %>
<%= phone_form.text_field :phone_number %>
<% end %>
<%= f.link_to_add "Add a phone", :phones %></p>
Everything works, except TWO empty fields are added every time the link is clicked.
I placed a breakpoint on $('form a.add_nested_fields').live('click', function()
and see it is called twice...
I am using chrome on a mac