On 03/30/2011 02:26 AM, Xavier Noria wrote:
Perhaps you know it, but in web programming "the last edit wins" is a meaningful rule that allows you to get rid of these controls. If two people edit the same form, the last received data is the one that prevails, it doesn't matter who requested the form first.
That's a horrible rule and a great way to lose data. The correct rule is the first edit wins. The last one fails and must refresh his view and try again. This is easily accomplished by using version numbers and failing any update where the version has changed since the initial view.
-- Ramon Leon -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.