On Mar 29, 2011, at 11:15 AM, Lille wrote:
> Hi,
>
> I'm hoping to make a parent and several of its dependent children
> available for updates by multiple users. I want to figure out how to
> implement and test the following:
>
> 1. A user 'checks out' a parent resource: when seeking to update,
> other users are informed that the resource and its dependent children
> are currently unavailable for updating.
>
> 2. A user 'checks out' a child resource: when seeking to update, other
> users are informed that the child is unavailable for updating, though
> the parent may be available.
In both of these cases, the only time that the user would "know" that
the element was locked is when they request it initially, or after a
failure to save due to a lock. Have a read of optimistic locking in
the Rails Guide. The only issue I can think of here is one of user
frustration. Let's say they had just spent 20 minutes writing an
update to a record, now they can't save it, and won't ever be able to
save it because the starting point for their edit has moved underneath
them.
Walter
>
> I think a reason I'm stumped here is that I have little deployment
> experience. Yet, even so, how would I test the behaviors above,
> locally?
>
> Thanks for any comments,
>
> Lille
>
> --
> 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
> .
>
--
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