ruby on rails - How do you update message state for RoR applications? -


i'm trying work out how update states messages. example if offer made in message, within message thread user how update status of offer without affecting previous offers?

i want application able take in offers , counter offers, store each message newest being calculated set of inputs , price of older messages being unaffected new message.

example:

1) - john sends offer: £1000

2) (not this - earlier message has been updated new price)

  • john sends offer: £3000
  • james declines offer , offers counter offer of £3000

3) (ideally this - regardless of number of messages , offers in message thread)

  • john sends offer: £1000
  • james declines offer , offers counter offer of £3000

how store values of price individually each message between 2 users?

thanks :)


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -