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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -