Ruby on Rails Tuesday, November 30, 2010

Lille wrote in post #965224:
> Hi,
> My Rails app offers opportunities to try out models on a 'what-if'
> basis, where dependent associations can be modified to obtain
> alternative results for the parent. Is there a way to delete/destroy
> the member of a collection so that I can play around with the
> accordingly modified parent in memory, without actually committing the
> destruction of the collection member to the data store? Based on my
> read of the docs, there is no 'delete' counterpart to
> '' for association members.

If it were my app, I think I'd do this differently: start a transaction
for the "what if" stuff, then either roll it back or commit it when

> Thanks for any comment,
> Lille


Marnen Laibow-Koser

Sent from my iPhone

Posted via

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
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment