Ruby on Rails Wednesday, March 30, 2011

On Wed, Mar 30, 2011 at 8:41 PM, Ramon Leon <ramon.leon@allresnet.com> wrote:

> Because you don't know it was a millisecond later, it could have been 10
> minutes later because user W sat there looking at the screen forever. User U
> may have changed many fields on the model while user W just updated one and
> you've now lost all of the data user U entered effectively rolling back the
> record.

I don't see any data loss necessarily, that depends on your
application. If W says all those fields are fine as they are, I trust
W. I trust the last one. How do you know W is wrong a priori?

The order in which the application sent the forms may be irrelevant
(again, I am using "may"). If W says the state is T, let it be T. He
was in particular saying that it is not S (for S != T if you allow me
the detail :).

It is your application who defines what's a reasonable behavior.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment