title: How can I do something in Rails only if the response to the client succeeds?
body: <p>I would like to have an action that formats a response, responds to the client, and then commits something to a database only if the client managed to receive the response. From what I understand of after_filters, they only intercept the response before it is sent to the client. Any ideas?</p>