Philip Hallstrom wrote:
>> And, of course, that race condition exists in your console experiment, 
>> but that's not an issue in the controller method I presented earlier. 
> 
> Yes, it is.  What happens when two people hit the URL that triggers that 
> action at the same time?

Sorry I was completely forgetting about the very important rule for any 
GET request (such as with the show action). Get request should be 
idempotent!

http://en.wikipedia.org/wiki/Idempotent

As I realized early and posted to the effect. I do completely agree with 
you.
-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to