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

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -