On 16 November 2014 15:48, Clay McCullough <[email protected]> wrote: > Well the auction object needs to be the auction itself, where users join and > bid... If my reasoning is flawed I would love some ideas. > > As for the bidding, I was thinking that instead of there being a highest > bidder, I would simply have a button that the users could click that would > increase the price by one dollar every time. Is there a way I could do this?
Are you just thinking of keeping track of the current price and which user it is then? I think there may be a problem with that, I think you will need to track the history of all bids in case there is a dispute from a user. Without the full history you would not be able to demonstrate the sequence of +1s Also what would happen if 500 users all clicked the +$1 within a second of each other? The last one could end up having made a bid $499 more than he anticipated. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu8%2BTfd4Np7XmZfRrz_3aNDUofmREEU1O2uuefT%3DWzOjg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

