bernat/best_in_place — pull request #181 by vbali (2012-09-10 13:03:21+00:00)
Title: Added handling of multiple objects from the same class

I've experienced that BIP sends inproper responses when I use the "display_with" option inside a loop of similar objects (I mean objects from the same class). For example:

```ruby

<% @categories.each do |category| %>

<%= best_in_place category, :name,
inner_class: 'span5',
activator: "#edit-#{category.id}",
display_with: :link_to,
helper_options: category_path(category) %>
<%= link_to "".html_safe, '#', id: "edit-#{category.id}" %>

<% end %>

```

The previous code snippet demonstrate the problem. When I edit category name `respond_with_bip` sends back the modified name inside the link tag, but unfortunately the link always points to the latest item from the `@categories` collection even if I modified an other item.