RailsCasts
RailsCasts
Ryan Bates
Show notes
When two people attempt to update the same record near the same time, one of the updates will likely be overwritten. You can solve this problem with optimistic locking.