def In Place Editor and Collection Partials
posted_by :Amos, :on => 'September 2nd, 2007'
I've noticed a lot of individuals have been having problems with the in_place_editor function and using a collection partial. The problem comes down to an in_place_editor looking for an variable beginning with an @. So here is the quick fix.
The partial function:
<%= render :partial => "item", :collection => @items %>
Inside the Partial:
<%@item = item%> <%= in_place_editor_field :item, 'on_hand' %>
I know it is a bit of a hack, but it is a very quick fix. Happy Coding!