Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Optimistic Locking

#59 Optimistic Locking

Jul 18, 2007 | 7 minutes | Active Record
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.
  • Download:
  • mp4Full Size H.264 Video (11.8 MB)
  • m4vSmaller H.264 Video (7.8 MB)
  • webmFull Size VP8 Video (23.7 MB)
  • ogvFull Size Theora Video (16 MB)