On Sunday, November 16, 2014 10:40:33 AM UTC-6, Colin Law wrote: > > On 16 November 2014 16:11, Clay McCullough <[email protected] <javascript:>> > wrote: > > Exactly. These are some problems I haven't figured out how to solve! > This is my first web application. I have thought about all users clicking > at the same time... What would be a good way to keep track of the users, > have a record of the bidding, and increment the price the same amount every > time? Would it be a method in the model or controller or what? > > Please quote the previous message when replying and insert your >> > comments at appropriate points, it makes it easier to follow the >> thread. Otherwise someone seeing your previous message will have no >> idea what you are saying 'exactly' to. Thanks. >> > Ok sorry, im learning :) this is my first post here.
>> Don't worry about where methods go yet, get the models and >> associations sorted. It seems to me you are going to have to have >> auctions, users, bids with appropriate associations. The +1 button >> should not show +1 but show the new bid amount (current + 1) and that >> value should be posted when he clicks, so there is no confusion over >> the amount he is bidding. By keeping all the bids in the database >> then you have a history of what happened. >> > Ok! yes that makes sense. that way my users wont be confused or the system hopefully wont be broken if there is a lot of activity at the same time. >> You will need something like >> user has many bids >> auction has many bids >> bid belongs to user >> bid belongs to auction >> >> Colin >> > Alrighty. That is what I thought i would need to do for the associations. Thanks for your help Colin, I will do some more reading on those associations in the Rails Guides. I will need help with the methods once I have that established, if you dont mind. Thanks for your time. Clay -- 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/fd62e6fa-eae7-40cb-b907-bfbf6c2194dc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

