ruby on rails + optimistic locking + best_in_place -
faced problem, best_in_place bypasses optimistic record locking, keeps on top of new value. how can fix this?
had same problem.
i have best_in_place fields within form , added hidden field named lock_version , seems work.
<%= form_for(commission, :remote => true) |f| %> <%= best_in_place commission, :commission_ma if admin? %> <%= f.hidden_field :lock_version %> <% end %>
hope solves problem well.
Comments
Post a Comment