I have a transaction in which a duplicate key exception is being thrown
by MySQL. I assume this happens when I try to do a save. The problem
is that before the save, I do a destroy on another object as part of the
transaction. Catching the exception by doing this,
objB.save <-- causing exception
rescue Exception => exc
flash[:notice] = …
does not rollback the destroy. Any help would be appreciated.